TypeScript/tests/baselines/reference/contextualTyping1.types

9 lines
319 B
Plaintext
Raw Normal View History

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