TypeScript/tests/baselines/reference/contextualTyping16.js

10 lines
161 B
JavaScript

//// [contextualTyping16.ts]
var foo: {id:number;} = {id:4}; foo = {id:5};
//// [contextualTyping16.js]
var foo = {
id: 4
};
foo = {
id: 5
};