linux-packaging-mono/mcs/tests/test-anon-90.cs

24 lines
267 B
C#
Raw Normal View History

class C
{
public static int Main ()
{
new C ().Foo ();
return 0;
}
delegate void D ();
void Foo ()
{
int x = 0;
D d1 = delegate () {
int y = 1;
if (y == 1) {
int z = 2;
D d2 = delegate () {
int a = x + y + z;
};
}
};
}
}