10 lines
161 B
JavaScript
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
|
|
};
|