=== tests/cases/compiler/contextualTyping37.ts === var foo = <{ id: number; }[]>[{ foo: "s" }, { }]; >foo : { id: number; }[] ><{ id: number; }[]>[{ foo: "s" }, { }] : { id: number; }[] >id : number >[{ foo: "s" }, { }] : {}[] >{ foo: "s" } : { foo: string; } >foo : string >{ } : {}