* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / tests / test-anon-08.cs
1 //
2 // Tests assignment of a captured variable to another
3 // Do not add anything else to this test.
4 //
5 delegate void S ();
6
7 class X {
8
9         //
10         // DO NOT ADD ANYTHING ELSE TO THIS TEST
11         //
12         static int Main ()
13         {
14                 int a = 2;
15                 int b = 1;
16                 S d = delegate {
17                         a = b;
18                 };
19
20                 return 0;
21         }
22 }