Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-344.cs
1 using System;
2
3 delegate void Y ();
4
5 class X {
6         public event Y y;
7         public static void Main (string [] args)
8         {
9                 X x = new X ();
10                 x.Foo ();
11         }
12
13         int a;
14         
15         void Foo ()
16         {
17                 int x = 1;
18                 y += delegate {
19                         Console.WriteLine (x);
20                         Console.WriteLine (this.GetType ());
21                 };
22                 y ();
23                 
24         }
25 }