2014-07-13 01:04:16 +02:00
|
|
|
//// [topLevelLambda2.ts]
|
|
|
|
function foo(x:any) {}
|
|
|
|
|
|
|
|
foo(()=>this.window);
|
|
|
|
|
|
|
|
//// [topLevelLambda2.js]
|
|
|
|
var _this = this;
|
2015-02-07 03:45:09 +01:00
|
|
|
function foo(x) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
foo(function () { return _this.window; });
|