6 lines
149 B
TypeScript
6 lines
149 B
TypeScript
//// [contextualTyping16.ts]
|
|
var foo: {id:number;} = {id:4}; foo = {id:5};
|
|
|
|
//// [contextualTyping16.js]
|
|
var foo = { id: 4 };
|
|
foo = { id: 5 };
|