2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / gcs0425.cs
blobef0c413c0c2b88ff56fd42b3ce3c9c67ca1dab1f
1 // 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
2 // Line: 12
3 interface IFoo<T>
5 void Test<U> ()
6 where U : T;
9 class Foo<T> : IFoo<T>
11 public void Test<V> ()
12 { }
15 class X
17 static void Main ()
18 { }