7 lines
291 B
Text
7 lines
291 B
Text
|
==== 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.
|