TypeScript/tests/cases/compiler/transformArrowInBlockScopedLoopVarInitializer.ts
2016-09-30 15:46:35 -07:00

8 lines
191 B
TypeScript

// @target: es5
// https://github.com/Microsoft/TypeScript/issues/11236
while (true)
{
let local = null;
var a = () => local; // <-- Lambda should be converted to function()
}