TypeScript/tests/baselines/reference/contextualTyping6.js
2014-07-12 17:30:19 -07:00

6 lines
139 B
JavaScript

//// [contextualTyping6.ts]
var foo:{id:number;}[] = [{id:1}, {id:2}];
//// [contextualTyping6.js]
var foo = [{ id: 1 }, { id: 2 }];