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

delegate void D<T> (T t);

class Test
{
	public static D<A> Foo<A> (D<A> a)
	{
		return null;
	}
	
	public static void Main ()
	{
		Foo (delegate {});
	}
}