[xbuild] Add new reserved properties $(MSBuildThisFile*).
[mono.git] / mcs / errors / cs0121-18.cs
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
4
5 interface IIn<in T>
6 {
7 }
8
9 class Test
10 {
11
12         static void Foo (IIn<string> f)
13         {
14         }
15
16         static void Foo (IIn<Test> f)
17         {
18         }
19
20         public static int Main ()
21         {
22                 IIn<object> test = null;
23                 Foo (test);
24
25                 return 0;
26         }
27 }