Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-90.cs
1 class C
2 {
3         public static int Main ()
4         {
5                 new C ().Foo ();
6                 return 0;
7         }
8         
9         delegate void D ();
10         
11         void Foo ()
12         {
13                 int x = 0;
14                 D d1 = delegate () {
15                         int y = 1;
16                         if (y == 1) {
17                                 int z = 2;
18                                 D d2 = delegate () {
19                                         int a = x + y + z;
20                                 };
21                         }
22                 };
23         }
24 }