TypeScript/tests/baselines/reference/contextualTyping2.js

6 lines
140 B
TypeScript
Raw Normal View History

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