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

gtest-422.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fdcfd13053300ac1c1761bbd0c94c072b136fcd (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
class A
{
	public static bool operator > (A a, object b)
	{
		return false;
	}
	
	public static bool operator < (A a, object b)
	{
		return true;
	}
}

class C
{
	public static int Main ()
	{
		return new C ().Test () ? 1 : 0;
	}
	
	int? Id {
		get { return 1; }
	}
	
	bool Test ()
	{
		A a = new A ();
		bool b = a > Id && a < Id;
        return b;
	}
}