[corlib] Add a special method for XI so the linker does not always have to generate it.
[mono-project.git] / mcs / tests / test-anon-53.cs
blobd5eafc9dfe0ffd814bc6565b32a02825ff9a2064
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 public static void Main ()
29 Test test = new Test (9);
30 Console.WriteLine (test);