TypeScript/tests/baselines/reference/contextualTyping4.types

12 lines
277 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"}; }
>foo : foo
>bar : { id: number; }
>id : number
2014-08-15 23:33:16 +02:00
>{id:5, name:"foo"} : { id: number; name: string; }
>id : number
2015-04-13 21:36:11 +02:00
>5 : number
>name : string
2015-04-13 21:36:11 +02:00
>"foo" : string
2014-08-15 23:33:16 +02:00