Merge pull request #3806 from BrzVlad/feature-parallel-gc-final
[mono-project.git] / mcs / errors / cs0314-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>