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

test-732.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04d6f67ab61e8053b2a45d7bfa6e588df75d3707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class C
{
	public static explicit operator int (C c)
	{
		return 1;
	}
	
	public static int op_Implicit (C c, bool b)
	{
		return -1;
	}

	public static int Main ()
	{
		int res = (int) new C ();
		if (res != 1)
			return 1;
		
		return 0;
	}
}