2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0121-3.cs
blobf8e20c15e7fbf22ceed22a07ced388e3c367a973
1 // CS0122: The call is ambiguous between the following methods or properties: `Test.Foo(IIn<string>)' and `Test.Foo(IIn<Test>)'
2 // Line: 23
3 // Compiler options: -langversion:future
5 interface IIn<in T>
9 class Test
12 static void Foo (IIn<string> f)
16 static void Foo (IIn<Test> f)
20 public static int Main ()
22 IIn<object> test = null;
23 Foo (test);
25 return 0;