summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0314-2.cs
blob: 504053eefb6d0e0ef8008427a1c0c64460c0b2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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'
// Line: 20

public interface IA<K> 
	where K : System.IComparable, System.IComparable<K>
{
}

public class A<K> : IA<K> 
	where K : System.IComparable, System.IComparable<K>
{
}

public interface IB<K,T> 
	where T : System.IDisposable
{
} 

public class B<K,T> : IB<K,T> 
	where T : B<K,T>.Element, new() 
	where K : System.IComparable, System.IComparable<K>
{
	public abstract class Element : A<K>
	{
	}
}