2010-05-27 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0314-2.cs
blob504053eefb6d0e0ef8008427a1c0c64460c0b2e5
1 // CS0314: The type `T' cannot be used as type parameter `T' in the generic type or method `IB<K,T>'. There is no boxing or type parameter conversion from `T' to `System.IDisposable'
2 // Line: 20
4 public interface IA<K>
5 where K : System.IComparable, System.IComparable<K>
9 public class A<K> : IA<K>
10 where K : System.IComparable, System.IComparable<K>
14 public interface IB<K,T>
15 where T : System.IDisposable
19 public class B<K,T> : IB<K,T>
20 where T : B<K,T>.Element, new()
21 where K : System.IComparable, System.IComparable<K>
23 public abstract class Element : A<K>