1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
//// [tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts] ////
=== 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
);
}
|