Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

26 lines
288 B
C#

using System;
delegate void Y ();
class X {
public event Y y;
public static void Main (string [] args)
{
X x = new X ();
x.Foo ();
}
int a;
void Foo ()
{
int x = 1;
y += delegate {
Console.WriteLine (x);
Console.WriteLine (this.GetType ());
};
y ();
}
}