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: 4c90da54ee951a1a9a1bc8747194cca26a13005a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs1667.cs: 'System.Obsolete' 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;
        }
}