Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1667.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1adf5682037f3484bdf4589ae71059f4d47de929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
// 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
// Line: 15

class Test {
        public static bool Error {
            [System.CLSCompliant (true)] get {
                return false;
            }
        }
}

class MainClass {
        public static void Main () {
                System.Console.WriteLine (Test.Error);
        }
}