Reenable AOT, it wasn't enabled on the x86 buildbot anyway.
[mcs.git] / tests / test-anon-16.cs
blob01500c1baf481b3839b0fed414a0fe499482e7b0
1 //
2 // Instance access.
3 //
4 using System;
6 delegate void D ();
8 class X {
9 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;