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

28 lines
375 B
C#

class C
{
static int Foo (object arg, bool b1 = false, bool b2 = false, bool b3 = true, object o2 = null)
{
if ((int) arg != 1)
return 1;
if (b1)
return 2;
if (b2)
return 3;
if (!b3)
return 4;
if ((string) o2 != "s")
return 5;
return 0;
}
public static int Main ()
{
object o = "s";
return Foo (1, b3 : true, o2 : o);
}
}