a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
30 lines
448 B
C#
30 lines
448 B
C#
// CS0809: Obsolete member `A.Filename' overrides non-obsolete member `Error.Filename'
|
|
// Line: 8
|
|
// Compiler options: -warnaserror
|
|
|
|
class A: Error {
|
|
[System.ObsoleteAttribute ("Obsolete", true)]
|
|
public override string Filename {
|
|
set {
|
|
}
|
|
}
|
|
|
|
public static void Main () {}
|
|
}
|
|
|
|
public class Error {
|
|
public virtual string Filename {
|
|
set {
|
|
}
|
|
get {
|
|
return "aa";
|
|
}
|
|
}
|
|
}
|
|
|
|
class B {
|
|
void TT () {
|
|
new A ().Filename = "Filename";
|
|
}
|
|
}
|