|
|
@@ -0,0 +1,27 @@
|
|
|
+// CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
|
|
|
+// Line: 23
|
|
|
+// Compiler options: -langversion:future
|
|
|
+
|
|
|
+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;
|
|
|
+ }
|
|
|
+}
|