TypeScript/tests/baselines/reference/contextualTyping38.types

9 lines
397 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTyping38.ts ===
var foo = <{ (): number; }> function(a) { return a };
2015-04-13 23:01:57 +02:00
>foo : () => number, Symbol(foo, Decl(contextualTyping38.ts, 0, 3))
2014-08-15 23:33:16 +02:00
><{ (): number; }> function(a) { return a } : () => number
>function(a) { return a } : (a: any) => any
2015-04-13 23:01:57 +02:00
>a : any, Symbol(a, Decl(contextualTyping38.ts, 0, 37))
>a : any, Symbol(a, Decl(contextualTyping38.ts, 0, 37))
2014-08-15 23:33:16 +02:00