TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.types
2015-04-15 16:44:20 -07:00

21 lines
505 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
);
}