blob: d90e4270033b315d1be1e8ecd9a5ef6318c86872 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// This code must be compilable without any warning
// Compiler options: -warnaserror -warn:4
using System;
public class A {
[Obsolete()]
public virtual string Warning {
get { return ""; }
}
}
public class B : A {
[Obsolete()]
public override string Warning {
get { return ""; }
}
public static void Main ()
{
}
}
|