Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gcs0304.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9f3591c16cc19be663565206f0d5735f24046b7 (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 doesn't have the new() constraint
// Line: 9

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

class X
{
	static void Main ()
	{
	}
}