Files
tsgo/testdata/baselines/reference/submodule/compiler/contextualTyping17.js

10 lines
248 B
TypeScript

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