Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs1503-15.cs
1 // CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>'
2 // Line: 18
3
4 interface IFoo<in T>
5 {
6 }
7
8 class C
9 {
10         public static void Foo<T> (IFoo<T> e1, IFoo<T> e2)
11         {
12         }
13         
14         public static void Main ()
15         {
16                 IFoo<int> a = null;
17                 IFoo<object> b = null;
18                 Foo (a, b);
19         }
20 }