2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / errors / cs1667.cs
1 // cs1667.cs: 'System.CLSCompliant' is not valid on property or event accessors. It is valid on 'assembly, module, class, struct, enum, constructor, method, property, indexer, field, event, interface, param, delegate, return, type parameter' declarations only.
2 // Line: 14
3
4 class Test {
5         public static bool Error {
6             [System.CLSCompliant (true)] get {
7                 return false;
8             }
9         }
10 }
11
12 class MainClass {
13         public static void Main () {
14                 System.Console.WriteLine (Test.Error);
15         }
16 }