* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / test-anon-22.cs
blobb697da3bf836c21ab83dd37749cd9e8707424e0d
1 //
2 using System;
4 delegate void D ();
6 class X {
7 static D r;
9 static void Main ()
11 D d = T ();
13 d ();
14 r ();
15 r ();
18 static D T ()
20 int var1 = 0;
22 D d = delegate () {
23 int var2 = 1;
25 r = delegate {
26 Console.WriteLine ("var1: {0} var2: {1}", var1, var2);
27 var2 = var2 + 1;
30 var1 = var1 + 1;
33 return d;