summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0425.cs
blob: ef0c413c0c2b88ff56fd42b3ce3c9c67ca1dab1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0425: The constraints for type parameter `V' of method `Foo<T>.Test<V>()' must match the constraints for type parameter `U' of interface method `IFoo<T>.Test<U>()'. Consider using an explicit interface implementation instead
// Line: 12
interface IFoo<T>
{
	void Test<U> ()
		where U : T;
}

class Foo<T> : IFoo<T>
{
	public void Test<V> ()
	{ }
}

class X
{
	static void Main ()
	{ }
}