[xbuild] Add support for Before/AfterTargets.
[mono.git] / mcs / errors / cs0657-16.cs
1 // cs0657-16.cs: `event' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are `method, param, return'
2 // Line: 14
3
4 using System;
5
6 [AttributeUsage(AttributeTargets.All)]
7 public class TestAttribute: Attribute
8 {
9 }
10
11 class C
12 {
13     event ResolveEventHandler field { 
14         [event: Test]
15         add {}
16         remove {}
17             
18     }
19 }