Skip to content

[SR-12869] [Diagnostics] Fixes assertion hit on TupleContextualFailure involving optional tuple type #32001

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

Merged
merged 6 commits into from
May 26, 2020

Conversation

LucianoPAlmeida
Copy link
Contributor

Fixes a crasher on the TupleContextualFailure when involving optional tuple type.
It also resolves a duplicated diagnostic when it diagnoses the mismatch in IgnoreAssignmentDestinationType/ContextualMismatch and AllowTupleMismatch.

cc @xedin :)

Resolves SR-12869.

@xedin xedin self-requested a review May 24, 2020 20:20
@LucianoPAlmeida LucianoPAlmeida changed the title Sr 12869 tuple mismatch crash [SR-12869] [Diagnostics] Fixes assertion hit on TupleContextualFailure involving optional tuple type May 24, 2020
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's adjust logic related to CTP_SubscriptAssignSource and we'll be good to go. Thank you, @LucianoPAlmeida!

@LucianoPAlmeida LucianoPAlmeida requested a review from xedin May 26, 2020 00:06
@xedin
Copy link
Contributor

xedin commented May 26, 2020

@swift-ci please smoke test

@xedin
Copy link
Contributor

xedin commented May 26, 2020

@swift-ci please smoke test Linux platform

2 similar comments
@xedin
Copy link
Contributor

xedin commented May 26, 2020

@swift-ci please smoke test Linux platform

@xedin
Copy link
Contributor

xedin commented May 26, 2020

@swift-ci please smoke test Linux platform

@xedin xedin merged commit b90e579 into swiftlang:master May 26, 2020
@LucianoPAlmeida LucianoPAlmeida deleted the SR-12869-tuple-mismatch-crash branch May 26, 2020 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants