7 lines
No EOL
304 B
Text
7 lines
No EOL
304 B
Text
==== tests/cases/compiler/inheritFromGenericTypeParameter.ts (2 errors) ====
|
|
class C<T> extends T { }
|
|
~
|
|
!!! A class may only extend another class.
|
|
interface I<T> extends T { }
|
|
~
|
|
!!! An interface may only extend a class or another interface. |