TypeScript/tests/baselines/reference/contextualTyping5.errors.txt
Daniel Rosenwasser 6e77e2e810 Removed colons from diagnostic messages.
Also got rid of the 'terminalMessages' concept.
2014-10-28 00:48:58 -07:00

9 lines
No EOL
459 B
Text

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