TypeScript/tests/baselines/reference/classExtendsItself.errors.txt
2014-09-12 13:35:07 -07:00

17 lines
1 KiB
Plaintext

tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts(1,7): error TS2310: Type 'C' recursively references itself as a base type.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts(3,7): error TS2310: Type 'D<T>' recursively references itself as a base type.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts(5,7): error TS2310: Type 'E<T>' recursively references itself as a base type.
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItself.ts (3 errors) ====
class C extends C { } // error
~
!!! error TS2310: Type 'C' recursively references itself as a base type.
class D<T> extends D<T> { } // error
~
!!! error TS2310: Type 'D<T>' recursively references itself as a base type.
class E<T> extends E<string> { } // error
~
!!! error TS2310: Type 'E<T>' recursively references itself as a base type.