[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-optional-03-lib.cs
blob18febac8fc341e6111cefece98ec6cf339519a1e
1 // Compiler options: -t:library
3 public struct S
7 public enum E
9 Value = 3
12 public class B
14 public static string TestString (string s = "mono")
16 return s;
19 public static B TestB (B b = null)
21 return b;
24 public static T Test<T> (T t = default (T))
26 return t;
29 public static ulong TestNew (ulong s = new ulong ())
31 return s;
34 public static decimal TestDecimal (int i, decimal d = decimal.MinValue)
36 return d;
39 public static E TestEnum (E e = E.Value)
41 return e;
44 byte ch;
45 public byte this [int id, byte v = 1+5] {
46 get { return v; }
47 set { ch = value; }