19 lines
345 B
C#
Raw Normal View History

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