TypeScript/tests/baselines/reference/contextualTyping4.types
2015-04-13 14:29:37 -07:00

12 lines
515 B
Plaintext

=== tests/cases/compiler/contextualTyping4.ts ===
class foo { public bar:{id:number;} = {id:5, name:"foo"}; }
>foo : foo, Symbol(foo, Decl(contextualTyping4.ts, 0, 0))
>bar : { id: number; }, Symbol(bar, Decl(contextualTyping4.ts, 0, 11))
>id : number, Symbol(id, Decl(contextualTyping4.ts, 0, 24))
>{id:5, name:"foo"} : { id: number; name: string; }
>id : number, Symbol(id, Decl(contextualTyping4.ts, 0, 39))
>5 : number
>name : string, Symbol(name, Decl(contextualTyping4.ts, 0, 44))
>"foo" : string