2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-optional-03-lib.cs
blobf801dfdc529896ed456880d9beb5e29105932215
1 // Compiler options: -t:library
3 public struct S
7 public class B
9 public static string TestString (string s = "mono")
11 return s;
14 public static B TestB (B b = null)
16 return b;
19 public static T Test<T> (T t = default (T))
21 return t;
24 public static ulong TestNew (ulong s = new ulong ())
26 return s;
29 public static decimal TestDecimal (int i, decimal d = decimal.MinValue)
31 return d;
34 char ch;
35 public char this [int id, char v = 'h'] {
36 get { return v; }
37 set { ch = value; }