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: 477ec9cd02a26e1498c7db2776f1576c88897650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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.
// Line: 14

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

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