TypeScript/tests/cases/compiler/forwardRefInClassProperties.ts
2018-07-03 14:41:09 +03:00

15 lines
281 B
TypeScript

class Test
{
_b = this._a; // undefined, no error/warning
_a = 3;
static _B = Test._A; // undefined, no error/warning
static _A = 3;
method()
{
let a = b; // Property 'b' is used before its initialization.
let b = 3;
}
}