Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-optional-03-lib.cs
1 // Compiler options: -t:library
2
3 public struct S
4 {
5 }
6
7 public enum E
8 {
9         Value = 3
10 }
11
12 public class B
13 {
14         public static string TestString (string s = "mono")
15         {
16                 return s;
17         }
18
19         public static B TestB (B b = null)
20         {
21                 return b;
22         }
23
24         public static T Test<T> (T t = default (T))
25         {
26                 return t;
27         }
28
29         public static ulong TestNew (ulong s = new ulong ())
30         {
31                 return s;
32         }
33
34         public static decimal TestDecimal (int i, decimal d = decimal.MinValue)
35         {
36                 return d;
37         }
38         
39         public static E TestEnum (E e = E.Value)
40         {
41                 return e;
42         }
43         
44         byte ch;
45         public byte this [int id, byte v = 1+5] {
46                 get { return v; }
47                 set { ch = value; } 
48         }
49 }