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: 4eb1d929da7260fcaa945d1bbc7ca6397908f118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 ()
	{
	}
}