blob: 6ce17f5555918ee47b9290114000dbe6ffb901b7 (
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
|
// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
// Line: 19
public class Foo<T>
where T : A
{
}
public class A
{
}
public class B
{
}
class X
{
Foo<B> foo;
static void Main ()
{
}
}
|