Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0657-16.cs
1 // 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
2 // Line: 15
3 // Compiler options: -warnaserror
4
5 using System;
6
7 [AttributeUsage(AttributeTargets.All)]
8 public class TestAttribute: Attribute
9 {
10 }
11
12 class C
13 {
14     event ResolveEventHandler field { 
15         [event: Test]
16         add {}
17         remove {}
18             
19     }
20 }