TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.types
2014-08-15 14:37:48 -07:00

24 lines
508 B
Plaintext

=== 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
);
}