mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
9 lines
233 B
TypeScript
9 lines
233 B
TypeScript
//// [tests/cases/compiler/contextualTyping36.ts] ////
|
|
|
|
//// [contextualTyping36.ts]
|
|
var foo = <{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })];
|
|
|
|
//// [contextualTyping36.js]
|
|
"use strict";
|
|
var foo = [{ id: 4 }, ({})];
|