Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain undefined in spreads with strict null checks #15938

Merged
merged 3 commits into from
May 19, 2017

Conversation

sandersn
Copy link
Member

Fixes #14799

Previously, both optional and | undefined caused spread properties to combine with preceding properties and drop the undefined. Now, with strictNullChecks, optional and | undefined properties still combine with preceding properties but don't drop the undefined.

sandersn added 2 commits May 18, 2017 13:57
Previously, both optional and `| undefined` caused spread properties to
combine with preceding properties and drop the `undefined`. Now, with
strictNullChecks, optional and `| undefined` properties still combine
with preceding properties but don't drop the `undefined`.
Add test case and update baselines with new errors
@sandersn sandersn merged commit 7325c89 into master May 19, 2017
@sandersn sandersn deleted the retain-undefined-in-spreads-w/strictNullChecks branch May 19, 2017 15:08
sandersn added a commit that referenced this pull request Jun 14, 2017
Fixes #16509 by making the change from #15938 less strict. This is
technically a hole, but it's not as big a hole as before #15938.
sandersn added a commit that referenced this pull request Jun 14, 2017
Fixes #16509 by making the change from #15938 less strict. This is
technically a hole, but it's not as big a hole as before #15938.
@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