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: 91c0703499ef4fe72027edf1d474555cd5522dce (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
// 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 ()
	{
	}
}