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

7 lines
175 B
JavaScript

//// [contextualTyping17.ts]
var foo: {id:number;} = {id:4}; foo = {id: 5, name:"foo"};
//// [contextualTyping17.js]
var foo = { id: 4 };
foo = { id: 5, name: "foo" };