TypeScript/tests/baselines/reference/topLevelLambda2.types
2015-04-15 16:44:20 -07:00

14 lines
268 B
Plaintext

=== tests/cases/compiler/topLevelLambda2.ts ===
function foo(x:any) {}
>foo : (x: any) => void
>x : any
foo(()=>this.window);
>foo(()=>this.window) : void
>foo : (x: any) => void
>()=>this.window : () => any
>this.window : any
>this : any
>window : any