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

14 lines
402 B
Plaintext

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