[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0832-4.cs
1 // CS0832: An expression tree cannot contain an assignment operator
2 // Line: 19
3
4 using System;
5 using System.Linq.Expressions;
6
7 public delegate void EventHandler (int i, int j);
8
9 public class Button
10 {
11         public event EventHandler Click;
12 }
13
14 public class Blah
15 {
16         public static void Main ()
17         {
18                 Button b = new Button ();
19                 Expression<Action> e = () => b.Click += new EventHandler (Button1_Click);
20         }
21
22         public static void Button1_Click (int i, int j)
23         {
24         }
25 }