TypeScript Version:
1.9.0-dev.20160604-1.0
Code
const LANG = "Turbo Pascal"
class BestLanguage {
name = LANG;
}
Expected behavior:
Compiled without errors.
Actual behavior:
$ tsc --strictNullChecks test.ts
test.ts(4,12): error TS2454: Variable 'LANG' is used before being assigned.
Latest version that doesn't have this bug is Version 1.9.0-dev.20160602-1.0.
TypeScript Version:
1.9.0-dev.20160604-1.0
Code
Expected behavior:
Compiled without errors.
Actual behavior:
Latest version that doesn't have this bug is Version 1.9.0-dev.20160602-1.0.