13 lines
314 B
Text
13 lines
314 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
|
|
>1 : number
|
|
>{id:2} : { id: number; }
|
|
>id : number
|
|
>2 : number
|
|
|