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()
|
2014-08-28 21:52:44 +02:00
|
|
|
>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
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|