summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0411-15.cs
blob: ed39e457d9bb0140f3c51a867e5af5fa2b3191a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0411: The type arguments for method `C.Foo<T>(IFoo<T>, IFoo<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
// Line: 17

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);
	}
}