summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0305-7.cs
blob: 5efc0235dced0c047768e85ff857ff77ebc4d0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0305: Using the generic method `X.G<T>()' requires `1' type argument(s)
// Line: 17

using System;

delegate int E ();

class X
{
	public static T G<T> ()
	{
		throw new ArgumentException ();
	}

	static void Main ()
	{
		E e2 = new E (G);
	}
}