11 lines
299 B
Text
11 lines
299 B
Text
|
=== tests/cases/compiler/contextualTyping37.ts ===
|
||
|
var foo = <{ id: number; }[]>[{ foo: "s" }, { }];
|
||
|
>foo : { id: number; }[]
|
||
|
><{ id: number; }[]>[{ foo: "s" }, { }] : { id: number; }[]
|
||
|
>id : number
|
||
|
>[{ foo: "s" }, { }] : {}[]
|
||
|
>{ foo: "s" } : { foo: string; }
|
||
|
>foo : string
|
||
|
>{ } : {}
|
||
|
|