[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / errors / cs1667.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: 15
4
5 class Test {
6         public static bool Error {
7             [System.CLSCompliant (true)] get {
8                 return false;
9             }
10         }
11 }
12
13 class MainClass {
14         public static void Main () {
15                 System.Console.WriteLine (Test.Error);
16         }
17 }