3c1f479b9d
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
15 lines
380 B
C#
15 lines
380 B
C#
// CS0657: `field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `param'. All attributes in this section will be ignored
|
|
// Line: 9
|
|
// Compiler options: -warnaserror -langversion:experimental
|
|
|
|
using System;
|
|
|
|
public class FieldAttribute : System.Attribute
|
|
{
|
|
}
|
|
|
|
class X ([field:FieldAttribute] int foo)
|
|
{
|
|
int v = foo;
|
|
}
|