[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-named-07.cs
blob5a796941bf17afd2bd7c26a7e1054a2160c88d0f
1 class C
3 static int Foo (object arg, bool b1 = false, bool b2 = false, bool b3 = true, object o2 = null)
5 if ((int) arg != 1)
6 return 1;
8 if (b1)
9 return 2;
11 if (b2)
12 return 3;
14 if (!b3)
15 return 4;
17 if ((string) o2 != "s")
18 return 5;
20 return 0;
23 public static int Main ()
25 object o = "s";
26 return Foo (1, b3 : true, o2 : o);