[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-344.cs
blob320c85f608c9a74dcd05b521a2e74ccb78976218
1 using System;
3 delegate void Y ();
5 class X {
6 public event Y y;
7 public static void Main (string [] args)
9 X x = new X ();
10 x.Foo ();
13 int a;
15 void Foo ()
17 int x = 1;
18 y += delegate {
19 Console.WriteLine (x);
20 Console.WriteLine (this.GetType ());
22 y ();