[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-anon-16.cs
blobffe8fec2de6970d394a4a03188105b7b466b23d0
1 //
2 // Instance access.
3 //
4 using System;
6 delegate void D ();
8 class X {
9 public static void Main ()
11 X x = new X (1);
12 X y = new X (100);
13 D a = x.T ();
14 D b = y.T ();
16 a ();
17 b ();
20 X (int start)
22 ins = start;
25 int ins;
27 D T ()
29 D d = delegate () {
30 Console.WriteLine ("My state is: " + ins);
33 return d;