TypeScript/tests/cases/compiler/forwardRefInClassProperties.ts
2017-02-06 16:05:40 -08:00

15 lines
287 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; // Block-scoped variable 'b' used before its declaration
let b = 3;
}
}