5 lines
No EOL
266 B
Text
5 lines
No EOL
266 B
Text
==== 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 '{}'. |