TypeScript/tests/baselines/reference/topLevelLambda2.types

14 lines
402 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/topLevelLambda2.ts ===
function foo(x:any) {}
2015-04-13 23:01:57 +02:00
>foo : (x: any) => void, Symbol(foo, Decl(topLevelLambda2.ts, 0, 0))
>x : any, Symbol(x, Decl(topLevelLambda2.ts, 0, 13))
2014-08-15 23:33:16 +02:00
foo(()=>this.window);
>foo(()=>this.window) : void
2015-04-13 23:01:57 +02:00
>foo : (x: any) => void, Symbol(foo, Decl(topLevelLambda2.ts, 0, 0))
2014-08-15 23:33:16 +02:00
>()=>this.window : () => any
>this.window : any
>this : any
>window : any