TypeScript/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts
2018-07-20 15:48:30 +08:00

12 lines
167 B
TypeScript

// @target: ES5
// @preserveConstEnums: true
function foo1() {
return E.A
enum E { A }
}
function foo2() {
return E.A
const enum E { A }
}