summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1667-2.cs
blob: 5fee50900839b76d4b28e1f3ae51a5154f6fcd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS1667: 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;
        }
}