new tests
[mono.git] / mcs / errors / gcs0425.cs
index b9fb1dfab151fe266e958bf3c2132b5bbdacdb20..bd12e082acc59dfff27213616ec97b9470a3a8a8 100644 (file)
@@ -1,16 +1,19 @@
-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 ()
+       { }
 }