Skip to content

[SR-13483][Sema] Make sure to record the correct remove args fix when repairing a tuple destructure attempt #36883

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 3 commits into from
Apr 16, 2021

Conversation

LucianoPAlmeida
Copy link
Contributor

When handling special cases for SE-0110 in repair failures, we were always recording the adding missing fix. But in case it is attempting a destructuring, it may happen that the problem is extra argurments on the closure.
So this just detect and record the remove args fix.

Resolves SR-13483.

@LucianoPAlmeida LucianoPAlmeida requested a review from xedin April 13, 2021 12:29
@LucianoPAlmeida LucianoPAlmeida force-pushed the SR-13483-closure-args branch 2 times, most recently from 0f525d5 to 9f00c21 Compare April 13, 2021 23:29
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.

Okay, looks like there is no other way to do this. LGTM!

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test Linux Platform

@LucianoPAlmeida LucianoPAlmeida merged commit 00c2531 into swiftlang:main Apr 16, 2021
@LucianoPAlmeida LucianoPAlmeida deleted the SR-13483-closure-args branch April 16, 2021 11:34
@LucianoPAlmeida
Copy link
Contributor Author

Thanks @xedin!

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