Skip to content

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Apr 2, 2020

Previously, spreading an optional any gave a bogus error when the name
conflicted with earlier properties in the object literal. Now the code
checks any types for optionality before issuing the error.

Fixes #37740

Previously, spreading an optional any gave a bogus error when the name
conflicted with earlier properties in the object literal. Now the code
checks any types for optionality before issuing the error.

Fixes #37740
@sandersn sandersn merged commit 527f467 into master Apr 2, 2020
@sandersn sandersn deleted the fix-error-on-spread-overwrites-optional-any branch April 2, 2020 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong property-will-be-overwritten-by-spread error when property is any
4 participants