TypeScript/tests/baselines/reference/contextualTyping36.js

6 lines
160 B
TypeScript

//// [contextualTyping36.ts]
var foo = <{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })];
//// [contextualTyping36.js]
var foo = [{ id: 4 }, ({})];