a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
28 lines
375 B
C#
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);
|
|
}
|
|
} |