TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.types

21 lines
505 B
Plaintext
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
2014-08-15 23:33:16 +02:00
{
foo(() =>
2014-08-22 03:39:46 +02:00
>foo(() => function () { return this; } ) : void
2014-08-15 23:33:16 +02:00
>foo : (dummy: any) => void
2014-08-22 03:39:46 +02:00
>() => function () { return this; } : () => () => any
2014-08-15 23:33:16 +02:00
function () { return this; }
>function () { return this; } : () => any
>this : any
);
}