a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
19 lines
345 B
C#
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 ""; }
|
|
}
|
|
}
|