summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0121-24.cs
blob: 6617508a8392962695505bd497214d4e0a02a4e3 (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
// CS0121: The call is ambiguous between the following methods or properties: `A.GetValues(string[], string)' and `A.GetValues(string, params string[])'
// Line: 23
// CSC BUG: Correct according the spec, no identity conversion to do tie-breaking

class A
{
	public int GetValues (string[] s, string value = null)
	{
		return 1;
	}

	public int GetValues (string s, params string [] args)
	{
		return 2;
	}
}


class B
{
	public static void Main ()
	{
		var a = new A ();
		a.GetValues (null);
	}
}