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

22 lines
246 B
C#

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;
}
}