TypeScript/tests/baselines/reference/contextualTyping4.types

12 lines
515 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/contextualTyping4.ts ===
class foo { public bar:{id:number;} = {id:5, name:"foo"}; }
2015-04-13 23:01:57 +02:00
>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))
2014-08-15 23:33:16 +02:00
>{id:5, name:"foo"} : { id: number; name: string; }
2015-04-13 23:01:57 +02:00
>id : number, Symbol(id, Decl(contextualTyping4.ts, 0, 39))
2015-04-13 21:36:11 +02:00
>5 : number
2015-04-13 23:01:57 +02:00
>name : string, Symbol(name, Decl(contextualTyping4.ts, 0, 44))
2015-04-13 21:36:11 +02:00
>"foo" : string
2014-08-15 23:33:16 +02:00