TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.js
2015-02-06 18:45:09 -08:00

17 lines
352 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;
}; });
}