Flush (work in progress)
[mono.git] / mcs / errors / gcs0311.cs
1 // 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'
2 // Line: 19
3
4 public class Foo<T>
5         where T : A
6 {
7 }
8
9 public class A
10 {
11 }
12
13 public class B
14 {
15 }
16
17 class X
18 {
19         Foo<B> foo;
20
21         static void Main ()
22         {
23         }
24 }