Flush (work in progress)
[mono.git] / mcs / errors / gcs0314-2.cs
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
3
4 public interface IA<K> 
5         where K : System.IComparable, System.IComparable<K>
6 {
7 }
8
9 public class A<K> : IA<K> 
10         where K : System.IComparable, System.IComparable<K>
11 {
12 }
13
14 public interface IB<K,T> 
15         where T : System.IDisposable
16 {
17
18
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>
22 {
23         public abstract class Element : A<K>
24         {
25         }
26 }
27
28
29
30