TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.js

17 lines
352 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [thisReferencedInFunctionInsideArrowFunction1.ts]
var foo = (dummy) => { };
function test()
{
foo(() =>
function () { return this; }
);
}
//// [thisReferencedInFunctionInsideArrowFunction1.js]
var foo = function (dummy) { };
2014-07-13 01:04:16 +02:00
function test() {
foo(function () { return function () {
return this;
}; });
}