11 lines
259 B
Plaintext
11 lines
259 B
Plaintext
|
=== tests/cases/compiler/contextualTyping8.ts ===
|
||
|
var foo:{id:number;}[] = [<{id:number;}>({})];
|
||
|
>foo : { id: number; }[]
|
||
|
>id : number
|
||
|
>[<{id:number;}>({})] : { id: number; }[]
|
||
|
><{id:number;}>({}) : { id: number; }
|
||
|
>id : number
|
||
|
>({}) : {}
|
||
|
>{} : {}
|
||
|
|