TypeScript/tests/baselines/reference/contextualTyping34.types

11 lines
403 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTyping34.ts ===
var foo = <{ id: number;}> ({id:4});
2015-04-13 23:01:57 +02:00
>foo : { id: number; }, Symbol(foo, Decl(contextualTyping34.ts, 0, 3))
2014-08-15 23:33:16 +02:00
><{ id: number;}> ({id:4}) : { id: number; }
2015-04-13 23:01:57 +02:00
>id : number, Symbol(id, Decl(contextualTyping34.ts, 0, 12))
2014-08-15 23:33:16 +02:00
>({id:4}) : { id: number; }
>{id:4} : { id: number; }
2015-04-13 23:01:57 +02:00
>id : number, Symbol(id, Decl(contextualTyping34.ts, 0, 29))
2015-04-13 21:36:11 +02:00
>4 : number
2014-08-15 23:33:16 +02:00