Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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";
}
}