TypeScript/tests/baselines/reference/contextualTyping21.js

7 lines
164 B
TypeScript
Raw Normal View History

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