2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0311-2.cs
blob664b4fe4a7a310bd1dbb0304ce6b6654bef1d6f2
1 // CS031: 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 `I'
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 ()