TypeScript/tests/baselines/reference/contextualTyping5.errors.txt
2014-07-12 17:30:19 -07:00

5 lines
266 B
Plaintext

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