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

28 lines
388 B
C#

using System;
public class BaseClass
{
public delegate void SomeDelegate ();
public BaseClass (SomeDelegate d)
{
d ();
}
}
public class TestClass : BaseClass
{
public readonly int Result;
public TestClass (int result)
: base (delegate ()
{
Console.WriteLine (result);
})
{
}
public static int Main (string[] args)
{
TestClass c = new TestClass (1);
return 0;
}
}