Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0070-2.cs
1 // CS0070: The event `A.evt' can only appear on the left hand side of += or -= when used outside of the type `A'
2 // Line: 22
3
4 using System;
5
6 public static class EventExtensions
7 {
8         public static void Raise (this EventHandler h)
9         {
10         }
11 }
12
13 public class A
14 {
15         public event EventHandler evt;
16 }
17
18 public class B : A
19 {
20         public void Run()
21         {
22                 Action a = () => evt.Raise ();
23         }
24 }