18 lines
457 B
Text
18 lines
457 B
Text
=== tests/cases/compiler/contextualTyping19.ts ===
|
|
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2}];
|
|
>foo : { id: number; }[]
|
|
>id : number
|
|
>[{id:1}] : { id: number; }[]
|
|
>{id:1} : { id: number; }
|
|
>id : number
|
|
>1 : number
|
|
>foo = [{id:1}, {id:2}] : { id: number; }[]
|
|
>foo : { id: number; }[]
|
|
>[{id:1}, {id:2}] : { id: number; }[]
|
|
>{id:1} : { id: number; }
|
|
>id : number
|
|
>1 : number
|
|
>{id:2} : { id: number; }
|
|
>id : number
|
|
>2 : number
|
|
|