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

cs0035.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4c98dcef236a3bf7e5772c7dd8dee29130a88a7 (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
// CS0035 : Operator `+' is ambiguous on operands of type `Y' and `X'
// Line: 22

class A
{
	public static implicit operator float(A x)
	{
		return 0;
	}

	public static implicit operator decimal(A x)
	{
		return 0;
	}
}

class M
{
	static void Main()
	{
		A a = new A ();
		int i = -a;  
	}
}