[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-anon-22.cs
blob42ec9111c28316fb9f852f79ed972f087e81bf9a
1 //
2 using System;
4 delegate void D ();
6 class X {
7 static D r;
9 public 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;