TypeScript/tests/baselines/reference/topLevelLambda2.types

14 lines
268 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/topLevelLambda2.ts ===
function foo(x:any) {}
>foo : (x: any) => void
>x : any
2014-08-15 23:33:16 +02:00
foo(()=>this.window);
>foo(()=>this.window) : void
>foo : (x: any) => void
2014-08-15 23:33:16 +02:00
>()=>this.window : () => any
>this.window : any
>this : any
>window : any