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

cs1667-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b9a8910fe53a0436f3e2a2c97ff694db5ee6dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs1667-2.cs: Attribute `System.ObsoleteAttribute' is not valid on property or event accessors. It is valid on `class, struct, enum, constructor, method, property, indexer, field, event, interface, delegate' declarations only
// Line: 14

class Test {
        public static bool Error {
            [System.Obsolete] set {
            }
        }
}

class MainClass {
        public static void Main () {
                Test.Error = false;
        }
}