Skip to content

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

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
Jul 28, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 25, 2022

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

xedin added 3 commits July 25, 2022 09:28
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
…idate loc

`DiagnosticEngine` does the checking for declaration, so all we
need to do for ambiguity diagnostic is to use an overload declaration.
@xedin xedin requested a review from hborla July 25, 2022 18:12
@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2022

@swift-ci please test

@xedin xedin changed the title [ConstraintSystem] Retrieve contextual from a solution for ambiguities [ConstraintSystem] Retrieve contextual type from a solution for ambiguities Jul 26, 2022
@xedin
Copy link
Contributor Author

xedin commented Jul 27, 2022

@swift-ci please smoke test

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