11 lines
525 B
Plaintext
11 lines
525 B
Plaintext
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. |