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

gcs0309.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 68bcbbd18dfd91c26f42400f1a64bde2cf2b4831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// CS0309: The type 'B' must be convertible to 'A' in order to use it as
// parameter 'T' in the generic type or method 'Foo<T>'
// Line: 20

public class Foo<T>
	where T : A
{
}

public class A
{
}

public class B
{
}

class X
{
	Foo<B> foo;

	static void Main ()
	{
	}
}