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

gtest-379.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5d770fdd31f7dfeffbf3745c9cca2833bd99fe94 (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
struct S
{
	public static bool operator == (S a, S b)
	{
		return true;
	}
	
	public static bool operator != (S a, S b)
	{
		return true;
	}
}

public class C
{
	static int Print (S? i)
	{
		if (i != null)
			return 5;
		
		return 0;
	}
	
	public static int Main ()
	{
		return Print (null);
	}
}