2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0672-4.cs
blobc9aaebc5d1beca5ea11c1b7dcbfe96faac522e30
1 // CS0672: Member `B.MyEvent' overrides obsolete member `A.MyEvent'. Add the Obsolete attribute to `B.MyEvent'
2 // Line: 13
3 // Compiler options: -warnaserror
5 using System;
7 class A {
8 [Obsolete]
9 public virtual event EventHandler MyEvent;
12 class B : A {
13 public override event EventHandler MyEvent;