2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / test-anon-53.cs
blob914f90b0297b66b85127df60713bd283c87fc7f8
1 using System;
3 public delegate void Foo ();
5 class Test
7 public Test (int a)
9 Foo foo = delegate {
10 Console.WriteLine (a);
12 foo ();
15 static Test ()
17 int a = 5;
18 Foo foo = delegate {
19 Console.WriteLine (a);
21 foo ();
25 class X
27 static void Main ()
29 Test test = new Test (9);
30 Console.WriteLine (test);