1 // cs0072.cs: An event can override anything but another event.
7 delegate void FooHandler ();
8 protected void Callback () {
10 protected virtual event FooHandler OnFoo;
13 class Child : ErrorCS0072 {
14 // We are trying to override a method with an event.
15 // To get this right comment the next line and uncomment the others below.
16 protected override event FooHandler Callback {
17 //protected override event FooHandler OnFoo {
28 public static void Main () {