//// [newLexicalEnvironmentForConvertedLoop.ts]
function baz(x: any) {
  return [[x, x]];
}

function foo(set: any) {
  for (const [value, i] of baz(set.values)) {
    const bar: any = [];
    (() => bar);

    set.values.push(...[]);
  }
};

//// [newLexicalEnvironmentForConvertedLoop.js]
function baz(x) {
    return [[x, x]];
}
function foo(set) {
    var _loop_1 = function (value, i) {
        var bar = [];
        (function () { return bar; });
        (_a = set.values).push.apply(_a, []);
        var _a;
    };
    for (var _i = 0, _a = baz(set.values); _i < _a.length; _i++) {
        var _b = _a[_i], value = _b[0], i = _b[1];
        _loop_1(value, i);
    }
}
;
