fe777c5c82
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
15 lines
354 B
C#
15 lines
354 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
|
|
|
|
using System;
|
|
|
|
public class FieldAttribute : System.Attribute
|
|
{
|
|
}
|
|
|
|
class X ([field:FieldAttribute] int foo)
|
|
{
|
|
int v = foo;
|
|
}
|