11 lines
No EOL
525 B
Text
11 lines
No EOL
525 B
Text
tests/cases/compiler/typeParameterAsBaseClass.ts(1,20): error TS2304: Cannot find name 'T'.
|
|
tests/cases/compiler/typeParameterAsBaseClass.ts(2,24): error TS2422: A class may only implement another class or interface.
|
|
|
|
|
|
==== tests/cases/compiler/typeParameterAsBaseClass.ts (2 errors) ====
|
|
class C<T> extends T {}
|
|
~
|
|
!!! error TS2304: Cannot find name 'T'.
|
|
class C2<T> implements T {}
|
|
~
|
|
!!! error TS2422: A class may only implement another class or interface. |