TypeScript/tests/baselines/reference/thisReferencedInFunctionInsideArrowFunction1.types
2015-04-13 14:29:37 -07:00

21 lines
806 B
Plaintext

=== tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts ===
var foo = (dummy) => { };
>foo : (dummy: any) => void, Symbol(foo, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 3))
>(dummy) => { } : (dummy: any) => void
>dummy : any, Symbol(dummy, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 11))
function test()
>test : () => void, Symbol(test, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 25))
{
foo(() =>
>foo(() => function () { return this; } ) : void
>foo : (dummy: any) => void, Symbol(foo, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 3))
>() => function () { return this; } : () => () => any
function () { return this; }
>function () { return this; } : () => any
>this : any
);
}