43 lines
No EOL
2.5 KiB
Text
43 lines
No EOL
2.5 KiB
Text
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(1,7): error TS2506: 'C' is referenced directly or indirectly in its own base expression.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(4,18): error TS2506: 'D' is referenced directly or indirectly in its own base expression.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(9,18): error TS2506: 'E' is referenced directly or indirectly in its own base expression.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(13,11): error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(16,22): error TS2506: 'D2' is referenced directly or indirectly in its own base expression.
|
|
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts(20,22): error TS2506: 'E2' is referenced directly or indirectly in its own base expression.
|
|
|
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts (6 errors) ====
|
|
class C extends N.E { foo: string; } // error
|
|
~
|
|
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
|
|
|
|
module M {
|
|
export class D extends C { bar: string; }
|
|
~
|
|
!!! error TS2506: 'D' is referenced directly or indirectly in its own base expression.
|
|
|
|
}
|
|
|
|
module N {
|
|
export class E extends M.D { baz: number; }
|
|
~
|
|
!!! error TS2506: 'E' is referenced directly or indirectly in its own base expression.
|
|
}
|
|
|
|
module O {
|
|
class C2<T> extends Q.E2<T> { foo: T; } // error
|
|
~~
|
|
!!! error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
|
|
|
|
module P {
|
|
export class D2<T> extends C2<T> { bar: T; }
|
|
~~
|
|
!!! error TS2506: 'D2' is referenced directly or indirectly in its own base expression.
|
|
}
|
|
|
|
module Q {
|
|
export class E2<T> extends P.D2<T> { baz: T; }
|
|
~~
|
|
!!! error TS2506: 'E2' is referenced directly or indirectly in its own base expression.
|
|
}
|
|
} |