2010-04-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0832-4.cs
blobcf0f6aeb9627b2c4055d2a43acea326a970dc828
1 // CS0832: An expression tree cannot contain an assignment operator
2 // Line: 19
4 using System;
5 using System.Linq.Expressions;
7 public delegate void EventHandler (int i, int j);
9 public class Button
11 public event EventHandler Click;
14 public class Blah
16 public static void Main ()
18 Button b = new Button ();
19 Expression<Action> e = () => b.Click += new EventHandler (Button1_Click);
22 public static void Button1_Click (int i, int j)