blob: 515d07755ee6c3190f8559a590ac842e11f2edd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// CS0114: `B.MyEvent' hides inherited member `A.MyEvent'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
// Line: 12
// Compiler options: -warnaserror -warn:2
using System;
abstract class A {
public abstract event EventHandler MyEvent;
}
class B : A {
public event EventHandler MyEvent;
}
|