9 lines
206 B
Text
9 lines
206 B
Text
=== tests/cases/compiler/contextualTyping3.ts ===
|
|
class foo { public bar:{id:number;} = {id:5}; }
|
|
>foo : foo
|
|
>bar : { id: number; }
|
|
>id : number
|
|
>{id:5} : { id: number; }
|
|
>id : number
|
|
>5 : number
|
|
|