TypeScript/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts
2017-04-19 17:06:12 -07:00

9 lines
147 B
TypeScript

// @target: es5
// @downlevelIteration: true
// @lib: es2015
function* a() {
for (const i of [1,2,3]) {
(() => i)()
yield i
}
}