linux-packaging-mono/mcs/tests/test-anon-53.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

33 lines
354 B
C#

using System;
public delegate void Foo ();
class Test
{
public Test (int a)
{
Foo foo = delegate {
Console.WriteLine (a);
};
foo ();
}
static Test ()
{
int a = 5;
Foo foo = delegate {
Console.WriteLine (a);
};
foo ();
}
}
class X
{
public static void Main ()
{
Test test = new Test (9);
Console.WriteLine (test);
}
}