[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-optional-03.cs
blob53666f05bb7ec3ef00146fd7acc8f5868f74a95b
1 // Compiler options: -r:gtest-optional-03-lib.dll
3 using System;
5 class C
7 static int Test (int i = 1, string s = "", bool b = false, ushort u = 4)
9 return i;
12 public static int Main ()
14 if (Test () != 1)
15 return 1;
17 if (B.TestString () != "mono")
18 return 3;
20 if (B.TestString ("top") != "top")
21 return 4;
23 if (B.TestB () != null)
24 return 5;
26 if (B.Test<ushort> () != 0)
27 return 6;
29 if (B.TestDecimal (2) != decimal.MinValue)
30 return 7;
32 if (B.TestDecimal (2, 5) != 5)
33 return 8;
35 if (B.TestEnum () != E.Value)
36 return 9;
38 B b = new B ();
39 b [1] = 3;
40 if (b [0] != 6)
41 return 10;
43 B.TestNew ();
45 Console.WriteLine ("ok");
47 return 0;