2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/thisReferencedInFunctionInsideArrowFunction1.ts ===
|
|
|
|
var foo = (dummy) => { };
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (dummy: any) => void, Symbol(foo, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>(dummy) => { } : (dummy: any) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>dummy : any, Symbol(dummy, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function test()
|
2015-04-13 23:01:57 +02:00
|
|
|
>test : () => void, Symbol(test, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 25))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
foo(() =>
|
2014-08-22 03:39:46 +02:00
|
|
|
>foo(() => function () { return this; } ) : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : (dummy: any) => void, Symbol(foo, Decl(thisReferencedInFunctionInsideArrowFunction1.ts, 0, 3))
|
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
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|