mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
//// [tests/cases/compiler/contextualTyping19.ts] ////
|
|
|
|
//// [contextualTyping19.ts]
|
|
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2}];
|
|
|
|
//// [contextualTyping19.js]
|
|
"use strict";
|
|
var foo = [{ id: 1 }];
|
|
foo = [{ id: 1 }, { id: 2 }];
|