Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs1503-14.cs
blob26422fa367d773225ab7d2bb72fd5763caf0d00a
1 // CS1503: Argument `#2' cannot convert `IContravariant<object>' expression to type `ICovariant<string>'
2 // Line: 23
4 interface IContravariant<in T>
8 interface ICovariant<out T>
12 class C
14 public static void Test<T> (ICovariant<T> e1, ICovariant<T> e2)
18 public static void Main ()
20 ICovariant<string> a_2 = null;
21 IContravariant<object> b_2 = null;
23 Test (a_2, b_2);