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

gcs0309-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b93cd4eba0a2d7218ad1e17059dc406345e82e8 (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
26
// CS0309: The type 'B' must be convertible to 'I' in order to use it as
//         parameter 'T' in the generic type or method 'Foo<T>'
// Line: 21

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

public interface I
{ }

public class A
{ }

public class B : A
{ }

class X
{
	Foo<B> foo;

	static void Main ()
	{
	}
}