blob: cd93d2b4ca32aa1f9d21ddf3916f1aa7cefc5aeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS0460: `C.Test<T>()': Cannot specify constraints for overrides and explicit interface implementation methods
// Line: 11
abstract class A
{
protected abstract int Test<T>() where T : class;
}
class C : A
{
protected override int Test<T>() where T : new()
{
}
}
|