mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
536 B
TypeScript
21 lines
536 B
TypeScript
//// [tests/cases/compiler/blockScopedBindingCaptureThisInFunction.ts] ////
|
|
|
|
//// [blockScopedBindingCaptureThisInFunction.ts]
|
|
// https://github.com/Microsoft/TypeScript/issues/11038
|
|
() => function () {
|
|
for (let someKey in {}) {
|
|
this.helloWorld();
|
|
() => someKey;
|
|
}
|
|
};
|
|
|
|
//// [blockScopedBindingCaptureThisInFunction.js]
|
|
"use strict";
|
|
// https://github.com/Microsoft/TypeScript/issues/11038
|
|
() => function () {
|
|
for (let someKey in {}) {
|
|
this.helloWorld();
|
|
() => someKey;
|
|
}
|
|
};
|