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

test-866.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 723795ee412697e13db243c91ef40ff11dac3668 (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
class C : B
{
	public static bool operator + (C a, short b)
	{
		return false;
	}

	public static bool operator + (C a, long b)
	{
		return false;
	}
}

class B
{
	public static bool operator + (B b, string s)
	{
		return false;
	}
}

public class Test
{
	public static void Main ()
	{
		var c = new C ();
		var a1 = c + "a";
		var a2 = c + "a";
	}
}