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

gcs0456.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee3394ad0085ec3e2ed1e07afcdc5f9313e0745e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0456: Type parameter `U' has the `struct' constraint, so it cannot be used as a constraint for `T'
// Line: 7
using System;

class Foo<T,U>
	where T : U
	where U : struct
{ }

class X
{
	static void Main ()
	{ }
}