==== tests/cases/compiler/contextualTyping5.ts (1 errors) ====
    class foo { public bar:{id:number;} = { }; }
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! contextualTyping5.ts(1,13): error TS2012: Cannot convert '{}' to '{ id: number; }':
!!! 	Type '{}' is missing property 'id' from type '{ id: number; }'.