TypeScript/tests/baselines/reference/classExtendsItself.errors.txt

12 lines
540 B
Text
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.