summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1503-15.cs
blob: 4313fcf2c8d358bc0d4ce2fd2f6f73185d1476f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS1503: Argument `#2' cannot convert `IFoo<object>' expression to type `IFoo<int>'
// Line: 18

interface IFoo<in T>
{
}

class C
{
	public static void Foo<T> (IFoo<T> e1, IFoo<T> e2)
	{
	}
	
	public static void Main ()
	{
		IFoo<int> a = null;
		IFoo<object> b = null;
		Foo (a, b);
	}
}