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