TypeScript/tests/baselines/reference/contextualTyping5.errors.txt
2014-09-11 16:11:08 -07:00

5 lines
294 B
Plaintext

==== tests/cases/compiler/contextualTyping5.ts (1 errors) ====
class foo { public bar:{id:number;} = { }; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2322: Type '{}' is not assignable to type '{ id: number; }':
!!! error TS2322: Property 'id' is missing in type '{}'.