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

test-named-07.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a796941bf17afd2bd7c26a7e1054a2160c88d0f (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
class C
{
	static int Foo (object arg, bool b1 = false, bool b2 = false, bool b3 = true, object o2 = null)
	{
		if ((int) arg != 1)
			return 1;
		
		if (b1)
			return 2;
		
		if (b2)
			return 3;
		
		if (!b3)
			return 4;
		
		if ((string) o2 != "s")
			return 5;
		
		return 0;
	}
	
	public static int Main ()
	{
		object o = "s";
		return Foo (1, b3 : true, o2 : o);
	}
}