Skip to content

Retain undefined in spreads with strict null checks#15938

Merged
sandersn merged 3 commits into
masterfrom
retain-undefined-in-spreads-w/strictNullChecks
May 19, 2017
Merged

Retain undefined in spreads with strict null checks#15938
sandersn merged 3 commits into
masterfrom
retain-undefined-in-spreads-w/strictNullChecks

Conversation

@sandersn
Copy link
Copy Markdown
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