TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.js
2014-07-12 17:30:19 -07:00

18 lines
353 B
JavaScript

//// [thisReferencedInFunctionInsideArrowFunction1.ts]
var foo = (dummy) => { };
function test()
{
foo(() =>
function () { return this; }
);
}
//// [thisReferencedInFunctionInsideArrowFunction1.js]
var foo = function (dummy) {
};
function test() {
foo(function () { return function () {
return this;
}; });
}