16 lines
418 B
Text
16 lines
418 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
|
||
|
>foo = [{id:1}, {id:2}] : { id: number; }[]
|
||
|
>foo : { id: number; }[]
|
||
|
>[{id:1}, {id:2}] : { id: number; }[]
|
||
|
>{id:1} : { id: number; }
|
||
|
>id : number
|
||
|
>{id:2} : { id: number; }
|
||
|
>id : number
|
||
|
|