=== tests/cases/compiler/contextualTyping12.ts ===
class foo { public bar:{id:number;}[] = [{id:1}, {id:2, name:"foo"}]; }
>foo : foo
>bar : { id: number; }[]
>id : number
>[{id:1}, {id:2, name:"foo"}] : { id: number; }[]
>{id:1} : { id: number; }
>id : number
>{id:2, name:"foo"} : { id: number; name: string; }
>id : number
>name : string

