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

10 lines
237 B
TypeScript

//// [tests/cases/compiler/contextualTyping21.ts] ////
//// [contextualTyping21.ts]
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, 1];
//// [contextualTyping21.js]
"use strict";
var foo = [{ id: 1 }];
foo = [{ id: 1 }, 1];