Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
405 B
C#

// 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: 13
interface IFoo<T>
{
void Test<U> ()
where U : T;
}
class Foo<T> : IFoo<T>
{
public void Test<V> ()
where V :X
{ }
}
class X
{
static void Main ()
{ }
}