mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
forwardRefInClassProperties.ts(3,15): error TS2729: Property '_a' is used before its initialization.
|
|
forwardRefInClassProperties.ts(6,22): error TS2729: Property '_A' is used before its initialization.
|
|
forwardRefInClassProperties.ts(11,17): error TS2448: Block-scoped variable 'b' used before its declaration.
|
|
forwardRefInClassProperties.ts(11,17): error TS2454: Variable 'b' is used before being assigned.
|
|
|
|
|
|
==== forwardRefInClassProperties.ts (4 errors) ====
|
|
class Test
|
|
{
|
|
_b = this._a; // undefined, no error/warning
|
|
~~
|
|
!!! error TS2729: Property '_a' is used before its initialization.
|
|
!!! related TS2728 forwardRefInClassProperties.ts:4:5: '_a' is declared here.
|
|
_a = 3;
|
|
|
|
static _B = Test._A; // undefined, no error/warning
|
|
~~
|
|
!!! error TS2729: Property '_A' is used before its initialization.
|
|
!!! related TS2728 forwardRefInClassProperties.ts:7:12: '_A' is declared here.
|
|
static _A = 3;
|
|
|
|
method()
|
|
{
|
|
let a = b; // Property 'b' is used before its initialization.
|
|
~
|
|
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
|
|
!!! related TS2728 forwardRefInClassProperties.ts:12:13: 'b' is declared here.
|
|
~
|
|
!!! error TS2454: Variable 'b' is used before being assigned.
|
|
let b = 3;
|
|
}
|
|
}
|
|
|