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

gcs0417.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a68f30598b7673e173abd355854f1f1228cc08e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0417: 'T': Cannot provide arguments when creating an instance of a variable type
// Line: 9

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

class X
{
	static void Main ()
	{
	}
}