12 lines
288 B
Text
12 lines
288 B
Text
|
=== tests/cases/compiler/contextualTyping10.ts ===
|
||
|
class foo { public bar:{id:number;}[] = [{id:1}, {id:2}]; }
|
||
|
>foo : foo
|
||
|
>bar : { id: number; }[]
|
||
|
>id : number
|
||
|
>[{id:1}, {id:2}] : { id: number; }[]
|
||
|
>{id:1} : { id: number; }
|
||
|
>id : number
|
||
|
>{id:2} : { id: number; }
|
||
|
>id : number
|
||
|
|