blob: 8dd16afe1370aec1b94ea9bb6b62eb943f9b62a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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
// Line: 16
interface IA
{
void Foo<U> ();
}
class CA
{
public void Foo<T> () where T : class
{
}
}
class CB : CA, IA
{
public static void Main ()
{
}
}
|