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

test-585.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 014b9b63e893b88c7c645df980022a8df83b6a3c (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
40
41
42
43
44
interface IA
{
}

interface IB
{
}

class A
{
}

class B
{
}

class X : IA
{
}

class Program
{
	public static void Main ()
	{
		IA a = null;
		IB b = null;
		bool r = a == b;
		
		A aa = null;
		B bb = null;
		// Only this fails
		//r = aa == bb;
		
		X x = null;
		r = x == a;
		r = x == b;
		
		object o = null;
		r = o == x;
		r = o == a;
		r = o == aa;
	}
}