a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
303 B
C#
15 lines
303 B
C#
// CS0672: Member `B.MyEvent' overrides obsolete member `A.MyEvent'. Add the Obsolete attribute to `B.MyEvent'
|
|
// Line: 13
|
|
// Compiler options: -warnaserror
|
|
|
|
using System;
|
|
|
|
class A {
|
|
[Obsolete]
|
|
public virtual event EventHandler MyEvent;
|
|
}
|
|
|
|
class B : A {
|
|
public override event EventHandler MyEvent;
|
|
}
|