**** Merged from MCS ****
[mono-project.git] / mcs / errors / cs0072-2.cs
blob77924c7e31063d5fa18001b75a739e7963aa149e
1 // cs0072.cs: `Child.OnFoo' : cannot override; `ErrorCS0072.OnFoo' is not an event
2 // Line: 16
4 using System;
6 class ErrorCS0072 {
7 public delegate void FooHandler ();
8 protected void OnFoo () {}
11 class Child : ErrorCS0072 {
12 // We are trying to override a method with an event.
13 protected override event FooHandler OnFoo;
15 public static void Main () {