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