Merge pull request #3997 from lateralusX/jlorenss/win-api-family-support-safearray
[mono.git] / mcs / errors / cs0425-6.cs
1 // CS0425: The constraints for type parameter `T' of method `CA.Foo<T>()' must match the constraints for type parameter `U' of interface method `IA.Foo<U>()'. Consider using an explicit interface implementation instead
2 // Line: 16
3
4 interface IA
5 {
6         void Foo<U> ();
7 }
8
9 class CA
10 {
11         public void Foo<T> () where T : class
12         {
13         }
14 }
15
16 class CB : CA, IA
17 {
18         public static void Main ()
19         {
20         }
21 }