You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interfaceA{a?: string}consta1: A={b: 2}// correct: error "Object literal may only specify known properties"consta2: A=()=>{}// incorrect: no error
Expected behavior:
Call signature is treated like an excessive property, so both lines emit an error. Actual behavior:
Only properties are checked, so only first line emits an error.
TypeScript Version: 2.1.6
Code
Expected behavior:
Call signature is treated like an excessive property, so both lines emit an error.
Actual behavior:
Only properties are checked, so only first line emits an error.
See #3755
The text was updated successfully, but these errors were encountered: