Skip to content

Fix synthetic properties in hasExcessProperties#16377

Merged
sandersn merged 2 commits into
masterfrom
fix-synthetic-properties-in-hasExcessProperties
Jun 8, 2017
Merged

Fix synthetic properties in hasExcessProperties#16377
sandersn merged 2 commits into
masterfrom
fix-synthetic-properties-in-hasExcessProperties

Conversation

@sandersn
Copy link
Copy Markdown
Member

@sandersn sandersn commented Jun 8, 2017

hasExcessProperty now only uses valueDeclaration for error reporting if available. Previously it would crash if valueDeclaration was not set; this happened with synthetic property symbols, specifically those created by getSpreadType. getSpreadType creates synthetic properties to remove readonly and to create union types when spreading an optional property into another property.

Fixes #16292

@sandersn sandersn merged commit ffc899e into master Jun 8, 2017
@mhegazy mhegazy deleted the fix-synthetic-properties-in-hasExcessProperties branch November 2, 2017 21:04
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants