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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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

5 participants