summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0121-13.cs
blob: 0d33c836a705c16da2f765f470a0b699b4c01c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0121: The call is ambiguous between the following methods or properties: `C.Foo(int, long, params string[])' and `C.Foo(long, int, params string[])'
// Line: 9

class C
{
	public static void Main ()
	{
		var d = new C ();
		d.Foo (b: 1, x: "", a : 2);
	}

	public void Foo (int a, long b, params string[] x)
	{
	}

	public void Foo (long b, int a, params string[] x)
	{
	}
}