[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0070.cs
1 // CS0070: The event `Button.Click' can only appear on the left hand side of += or -= when used outside of the type `Button'
2 // Line: 20
3
4 using System;
5
6 public delegate void EventHandler (int i, int j);
7
8 public class Button {
9
10         public event EventHandler Click;
11
12 }
13
14 public class Blah {
15
16         Button Button1 = new Button ();
17
18         public void Connect ()
19         {
20                 Button1.Click = new EventHandler (Button1_Click);
21         }
22
23         public void Button1_Click (int i, int j)
24         {
25         }
26         
27         public static void Main ()
28         {
29         }
30 }