Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-451-lib.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d7e4dd6ebb6ae1d6ceeaae3902be9cb54d517e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Compiler options: -t:library -langversion:future

public struct S
{
}

public class B
{
	public static string TestString (string s = "mono")
	{
		return s;
	}

	public static B TestB (B b = null)
	{
		return b;
	}

	public static T Test<T> (T t = default (T))
	{
		return t;
	}

	public static S TestNew (S s = new S ())
	{
		return s;
	}

	public static decimal TestDecimal (int i, decimal d = decimal.MinValue)
	{
		return d;
	}
	
	char ch;
	public char this [int id, char v = 'h'] {
		get { return v; }
		set { ch = value; } 
	}
}