5 lines
294 B
Plaintext
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 '{}'. |