a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
347 B
C#
27 lines
347 B
C#
// CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
|
|
// Line: 22
|
|
|
|
interface IIn<in T>
|
|
{
|
|
}
|
|
|
|
class Test
|
|
{
|
|
|
|
static void Foo (IIn<string> f)
|
|
{
|
|
}
|
|
|
|
static void Foo (IIn<Test> f)
|
|
{
|
|
}
|
|
|
|
public static int Main ()
|
|
{
|
|
IIn<object> test = null;
|
|
Foo (test);
|
|
|
|
return 0;
|
|
}
|
|
}
|