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

test-663.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 141ae889798b5d80f8cdd0575f8597b634916261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class A
{
	public static implicit operator int (A a)
	{
		return 1;
	}
	
	public static implicit operator bool (A a)
	{
		return false;
	}
}

class C
{
	public static void Main ()
	{
		switch (new A ())
		{
			default: break;
		}
	}
}