summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0455-5.cs
blob: 3844f9de2c505fd0fb20d485d138fa167fa170fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0455: Type parameter `Y' inherits conflicting constraints `class' and `long'
// Line: 11

abstract class A<T>
{
	public abstract void Foo<U> () where U : class, T;
}

class B : A<long>
{
	public override void Foo<Y> ()
	{
	}
}