cleol
[mcs.git] / errors / gcs0309-2.cs
blob6411c3d42273ecc86e1c95bc081348f8bef22763
1 // 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>'
2 // Line: 21
4 public class Foo<T>
5 where T : A, I
9 public interface I
10 { }
12 public class A
13 { }
15 public class B : A
16 { }
18 class X
20 Foo<B> foo;
22 static void Main ()