linux-packaging-mono/mcs/tests/gtest-optional-06.cs

22 lines
246 B
C#
Raw Normal View History

using System;
delegate int D (int i = 1);
class C
{
static int Foo (int i = 9)
{
return i;
}
public static int Main ()
{
D d = new D (Foo);
var res = d ();
if (res != 1)
return 1;
Console.WriteLine (res);
return 0;
}
}