TypeScript/tests/cases/compiler/blockScopedBindingsInDownlevelGenerator.ts

9 lines
147 B
TypeScript
Raw Normal View History

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