summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0305-5.cs
blob: 2d572cf73cbff9abc209fdf0ca33da8a010bd8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0305: Using the generic method `C.Test<T,Y>(C.Func<T>)' requires `2' type argument(s)
// Line: 14

public class C
{
	public delegate int Func<T> (T t);
	
	public static void Test<T, Y> (Func<T> f)
	{
	}

	public static void Main ()
	{
		Test<int> (delegate (int i) { return i; });
	}
}