-using System;
+// CS0425: The constraints for type parameter `V' of method `Foo`1.Test()' must match the constraints for type parameter `U' of interface method `IFoo`1.Test()'. Consider using an explicit interface implementation instead
+// Line: 12
+interface IFoo<T>
+{
+ void Test<U> ()
+ where U : T;
+}
-public abstract class Base
+class Foo<T> : IFoo<T>
{
- public abstract T G<T> (T t) where T : IComparable;
+ public void Test<V> ()
+ { }
}
-class Derived : Base
+class X
{
- // CS0425: The constraints of type parameter `T' of method `G' must match the
- // constraints for type parameter `T' of method `Base.G'
- public override T G<T> (T t)
- {
- return t;
- }
+ static void Main ()
+ { }
}