Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-03.cs
1 //
2 // Simple variable capturing
3 //
4 using System;
5
6 delegate void S ();
7
8 class X {
9         public static void Main ()
10         {
11                 int a = 1;
12                 S b = delegate {
13                         a = 2;
14                 };
15                 b ();
16                 Console.WriteLine ("Back, got " + a);
17         }
18 }