TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.types

24 lines
508 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts ===
var foo = (dummy) => { };
>foo : (dummy: any) => void
>(dummy) => { } : (dummy: any) => void
>dummy : any
function test()
>test : () => void
{
foo(() =>
>foo(() =>
function () { return this; }
) : void
>foo : (dummy: any) => void
>() =>
function () { return this; } : () => () => any
function () { return this; }
>function () { return this; } : () => any
>this : any
);
}