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

19 lines
345 B
C#

// CS0672: Member `B.Warning' overrides obsolete member `A.Warning'. Add the Obsolete attribute to `B.Warning'
// Line: 15
// Compiler options: -warnaserror
using System;
public class A {
[Obsolete()]
public virtual string Warning {
get { return ""; }
}
}
public class B : A {
public override string Warning {
get { return ""; }
}
}