[amd64] Add XMM registers to MonoContext on linux
[mono.git] / mcs / errors / cs0072.cs
1 // CS0072: `Child.OnFoo': cannot override because `ErrorCS0072.OnFoo()' is not an event
2 // Line: 16
3
4 using System;
5
6 class ErrorCS0072 {
7         public delegate void FooHandler ();
8         protected void OnFoo () {}
9 }
10
11 class Child : ErrorCS0072 {
12         // We are trying to override a method with an event.
13         protected override event FooHandler OnFoo {
14                 add {
15                         OnFoo += value;
16                 }
17                 remove {
18                         OnFoo -= value;
19                 }
20         }
21
22         public static void Main () {
23         }
24 }
25