2009-09-30 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-451-lib.cs
blobd7e4dd6ebb6ae1d6ceeaae3902be9cb54d517e7f
1 // Compiler options: -t:library -langversion:future
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 S TestNew (S s = new S ())
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; }