2008-04-12 Everaldo Canuto <ecanuto@novell.com>
[mono.git] / mcs / errors / gcs0309-7.cs
1 // CS0309: The type `T' must be convertible to `System.IDisposable' in order to use it as parameter `T' in the generic type or method `IB<K,T>'
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