Skip to content

[5.7][ConstraintSystem] Retrieve contextual type from a solution for ambiguities #60533

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
Aug 15, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 12, 2022

Cherry-pick of #60222


In ambiguity scenarios solutions are not applied back to the constraint
system, so it might not always have contextual type information when it
was recorded e.g. for a multi-statement closure.

Resolves: rdar://97396399

(cherry picked from commit b07c887)
(cherry picked from commit 399d349)
(cherry picked from commit c300edb)

…uities

In ambiguity scenarios solutions are not applied back to the constraint
system, so it might not always have contextual type information when it
was recorded e.g. for a multi-statement closure.

Resolves: rdar://97396399

(cherry picked from commit b07c887)
(cherry picked from commit 399d349)
(cherry picked from commit c300edb)
@xedin xedin added the r5.7 label Aug 12, 2022
@xedin xedin requested a review from hborla August 12, 2022 16:51
@xedin xedin requested a review from a team as a code owner August 12, 2022 16:51
@xedin
Copy link
Contributor Author

xedin commented Aug 12, 2022

@swift-ci please test

@xedin xedin merged commit 9ef092c into swiftlang:release/5.7 Aug 15, 2022
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 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.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants