12 lines
540 B
Text
12 lines
540 B
Text
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts (3 errors) ====
|
||
|
class C extends C { } // error
|
||
|
~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Type 'C' recursively references itself as a base type.
|
||
|
|
||
|
class D<T> extends D<T> { } // error
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Type 'D<T>' recursively references itself as a base type.
|
||
|
|
||
|
class E<T> extends E<string> { } // error
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
!!! Type 'E<T>' recursively references itself as a base type.
|