TypeScript/tests/cases/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.ts

12 lines
167 B
TypeScript
Raw Normal View History

2018-07-20 09:48:26 +02:00
// @target: ES5
// @preserveConstEnums: true
function foo1() {
return E.A
enum E { A }
}
function foo2() {
return E.A
const enum E { A }
}