[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs1667-4.cs
1 // CS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return' declarations only
2 // GMCS1667: Attribute `System.CLSCompliantAttribute' is not valid on property or event accessors. It is valid on `assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, parameter, delegate, return, type parameter' declarations only
3 // Line: 11
4
5 using System;
6 using System.Diagnostics;
7
8 class Class1 
9 {
10         public event ResolveEventHandler G {
11             [CLSCompliant(false)]
12             add {}
13             remove {}
14         }
15 }
16