Skip to content

[5.5][ConstraintSystem] Don't record a mismatch for synthesized arguments #37790

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 1 commit into from
Jun 6, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 4, 2021

Cherry-pick of #37778


  • Explanation:

Fixes a crash in type-checker when solver attempts to fix structural problems in synthesized arguments.

Without context synthesized argument would be inferred as a hole,
so let's not record any additional fixes for it if there is no way
to infer it properly from a parameter (which could also be a hole
if it is a generic parameter type).

Resolves: rdar://78781552
(cherry picked from commit 9e54006)

Without context synthesized argument would be inferred as a hole,
so let's not record any additional fixes for it if there is no way
to infer it properly from a parameter (which could also be a hole
if it is a generic parameter type).

Resolves: rdar://78781552
(cherry picked from commit 9e54006)
@xedin xedin added the r5.5 label Jun 4, 2021
@xedin xedin requested a review from a team as a code owner June 4, 2021 20:04
@xedin
Copy link
Contributor Author

xedin commented Jun 4, 2021

@swift-ci please test

@xedin xedin merged commit e16e013 into swiftlang:release/5.5 Jun 6, 2021
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants