9 lines
187 B
TypeScript
9 lines
187 B
TypeScript
//// [topLevelLambda2.ts]
|
|
function foo(x:any) {}
|
|
|
|
foo(()=>this.window);
|
|
|
|
//// [topLevelLambda2.js]
|
|
var _this = this;
|
|
function foo(x) { }
|
|
foo(function () { return _this.window; });
|