7 lines
291 B
Plaintext
7 lines
291 B
Plaintext
|
==== tests/cases/compiler/typeParameterAsBaseClass.ts (2 errors) ====
|
||
|
class C<T> extends T {}
|
||
|
~
|
||
|
!!! A class may only extend another class.
|
||
|
class C2<T> implements T {}
|
||
|
~
|
||
|
!!! A class may only implement another class or interface.
|