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

10 lines
231 B
TypeScript

//// [tests/cases/compiler/contextualTyping18.ts] ////
//// [contextualTyping18.ts]
var foo: {id:number;} = <{id:number;}>({ }); foo = {id: 5};
//// [contextualTyping18.js]
"use strict";
var foo = ({});
foo = { id: 5 };