blob: 04306dc46a7f34f65fe0cd658bc45c93c5d97b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// CS0657: `event' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method, param, return'. All attributes in this section will be ignored
// Line: 15
// Compiler options: -warnaserror
using System;
[AttributeUsage(AttributeTargets.All)]
public class TestAttribute: Attribute
{
}
class C
{
event ResolveEventHandler field {
[event: Test]
add {}
remove {}
}
}
|