summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0619-29.cs
blob: 06822191e211f12c52f54714e7cea1aeb31d1369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0619-29: `Obsolete.Error' is obsolete: `Do not use it.'
// Line: 15

class Obsolete {
        [System.Obsolete("Do not use it.", true)]
        public static bool Error {
            get {
                return false;
            }
        }
}

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