2010-01-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / errors / gcs0425-2.cs
blobac5904c3831745751531602bcb221557d0e35b18
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: 13
3 interface IFoo<T>
5 void Test<U> ()
6 where U : T;
9 class Foo<T> : IFoo<T>
11 public void Test<V> ()
12 where V :X
13 { }
16 class X
18 static void Main ()
19 { }