TypeScript/tests/baselines/reference/contextualTyping16.js

7 lines
149 B
TypeScript

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