13 lines
330 B
C#
13 lines
330 B
C#
|
// CS0617: `foo3' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, const or read-write properties which are public and not static
|
||
|
// Line: 11
|
||
|
|
||
|
class BazAttribute : System.Attribute
|
||
|
{
|
||
|
public object foo3 { set {} }
|
||
|
}
|
||
|
|
||
|
class Test
|
||
|
{
|
||
|
[Baz (foo3 = 3)] void f3() {}
|
||
|
}
|