Files
tsgo/testdata/baselines/reference/submodule/conformance/classExtendsItselfIndirectly2.errors.txt

69 lines
4.1 KiB
Plaintext

classExtendsItselfIndirectly2.ts(1,7): error TS2506: 'C' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(1,19): error TS2449: Class 'E' used before its declaration.
classExtendsItselfIndirectly2.ts(1,23): error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
classExtendsItselfIndirectly2.ts(4,18): error TS2506: 'D' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(4,32): error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
classExtendsItselfIndirectly2.ts(9,18): error TS2506: 'E' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(9,34): error TS2564: Property 'baz' has no initializer and is not definitely assigned in the constructor.
classExtendsItselfIndirectly2.ts(13,11): error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(13,27): error TS2449: Class 'E2' used before its declaration.
classExtendsItselfIndirectly2.ts(13,35): error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
classExtendsItselfIndirectly2.ts(16,22): error TS2506: 'D2' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(16,44): error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
classExtendsItselfIndirectly2.ts(20,22): error TS2506: 'E2' is referenced directly or indirectly in its own base expression.
classExtendsItselfIndirectly2.ts(20,46): error TS2564: Property 'baz' has no initializer and is not definitely assigned in the constructor.
==== classExtendsItselfIndirectly2.ts (14 errors) ====
class C extends N.E { foo: string; } // error
~
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'E' used before its declaration.
!!! related TS2728 classExtendsItselfIndirectly2.ts:9:18: 'E' is declared here.
~~~
!!! error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
namespace M {
export class D extends C { bar: string; }
~
!!! error TS2506: 'D' is referenced directly or indirectly in its own base expression.
~~~
!!! error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
}
namespace N {
export class E extends M.D { baz: number; }
~
!!! error TS2506: 'E' is referenced directly or indirectly in its own base expression.
~~~
!!! error TS2564: Property 'baz' has no initializer and is not definitely assigned in the constructor.
}
namespace O {
class C2<T> extends Q.E2<T> { foo: T; } // error
~~
!!! error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
~~
!!! error TS2449: Class 'E2' used before its declaration.
!!! related TS2728 classExtendsItselfIndirectly2.ts:20:22: 'E2' is declared here.
~~~
!!! error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
namespace P {
export class D2<T> extends C2<T> { bar: T; }
~~
!!! error TS2506: 'D2' is referenced directly or indirectly in its own base expression.
~~~
!!! error TS2564: Property 'bar' has no initializer and is not definitely assigned in the constructor.
}
namespace Q {
export class E2<T> extends P.D2<T> { baz: T; }
~~
!!! error TS2506: 'E2' is referenced directly or indirectly in its own base expression.
~~~
!!! error TS2564: Property 'baz' has no initializer and is not definitely assigned in the constructor.
}
}