9 lines
193 B
Text
9 lines
193 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
|
||
|
|