TypeScript/tests/baselines/reference/contextualTyping35.types

12 lines
502 B
Text
Raw Normal View History

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