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

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