blob: 743edf8755cb5a53b535f57149ddb57eb47f32ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// CS0121: The call is ambiguous between the following methods or properties: `C.Foo(object, string)' and `C.Foo(int, object)'
// Line: 13
class C
{
delegate void D (int x, string s);
static void Foo (object o, string s) { }
static void Foo (int x, object o) { }
static void Main ()
{
D d = Foo;
}
}
|