blob: 7306752b5290258d0164c1d7c8dde02f9a0b5674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// CS0121: The call is ambiguous between the following methods or properties: `C.M(int, string, string)' and `C.M<int>(int, int?, string)'
// Line: 16
class C
{
static void M (int x, string y, string z = null)
{
}
static void M<T>(T t, int? u, string z = null)
{
}
static void Main ()
{
M (123, null);
}
}
|