Merge remote branch 'upstream/master'
[mono.git] / mcs / errors / cs0425.cs
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>
4 {
5         void Test<U> ()
6                 where U : T;
7 }
8
9 class Foo<T> : IFoo<T>
10 {
11         public void Test<V> ()
12         { }
13 }
14
15 class X
16 {
17         static void Main ()
18         { }
19 }