TypeScript/tests/baselines/reference/contextualTyping6.js

6 lines
139 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [contextualTyping6.ts]
var foo:{id:number;}[] = [{id:1}, {id:2}];
//// [contextualTyping6.js]
var foo = [{ id: 1 }, { id: 2 }];