2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file1.ts(1,7): error TS2310: Type 'C' recursively references itself as a base type.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file4.ts(1,7): error TS2310: Type 'C2<T>' recursively references itself as a base type.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file1.ts (1 errors) ====
class C extends E { foo: string; } // error
2014-07-19 02:30:06 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS2310: Type 'C' recursively references itself as a base type.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file2.ts (0 errors) ====
class D extends C { bar: string; }
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file3.ts (0 errors) ====
class E extends D { baz: number; }
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file4.ts (1 errors) ====
class C2<T> extends E2<T> { foo: T; } // error
2014-07-19 02:30:06 +02:00
~~
2014-09-12 00:19:57 +02:00
!!! error TS2310: Type 'C2<T>' recursively references itself as a base type.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file5.ts (0 errors) ====
class D2<T> extends C2<T> { bar: T; }
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly_file6.ts (0 errors) ====
class E2<T> extends D2<T> { baz: T; }