TypeScript/tests/baselines/reference/contextualTyping36.js

6 lines
160 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [contextualTyping36.ts]
var foo = <{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })];
//// [contextualTyping36.js]
var foo = [{ id: 4 }, ({})];