2010-02-20 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-344.cs
blob82c015c0ce9f25772414a1e7839de3a723673186
1 using System;
3 delegate void Y ();
5 class X {
6 public event Y y;
7 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 ();