19 lines
442 B
Plaintext
19 lines
442 B
Plaintext
=== 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 : 1
|
|
>foo = [{id:1}, {id:2}] : { id: number; }[]
|
|
>foo : { id: number; }[]
|
|
>[{id:1}, {id:2}] : { id: number; }[]
|
|
>{id:1} : { id: number; }
|
|
>id : number
|
|
>1 : 1
|
|
>{id:2} : { id: number; }
|
|
>id : number
|
|
>2 : 2
|
|
|