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