summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0304.cs
blob: 2760b2ca53d237d7d0c371aa68710b8449fffaa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0304: Cannot create an instance of the variable type `T' because it does not have the new() constraint
// Line: 8

public class Foo<T>
{
	public T Create ()
	{
		return new T ();
	}
}

class X
{
	static void Main ()
	{
	}
}