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
@weswigham points out that this is probably correct; b: 0 is not excess because it's overridden by o.b which comes from a spread, so should not count as excess.
What would be more useful is an error for unused properties in a spread: any property that is not used because of later spreads. The error should only apply to non-spread properties.
TypeScript Version: 3.1.0-dev.201xxxxx
Code
Expected behavior:
Error on
b
.Actual behavior:
No error.
Broken by #26798.
Related Issues: #27166, #23340
The text was updated successfully, but these errors were encountered: