Skip to content

[ConstraintSystem] Allow generic parameters to bind to holes only in … #66579

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 13, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 12, 2023

…diagnostic mode

If generic parameter gets opened during regular solving it cannot be bound to a hole,
that can only happen in diagnostic mode, so let's not even try. Doing so also makes
sure that there are no inference side-effects related to holes because bindings are
ranked based on their attributes.

…diagnostic mode

If generic parameter gets opened during regular solving it cannot
be bound to a hole, that can only happen in diagnostic mode, so
let's not even try. Doing so also makes sure that there are no
inference side-effects related to holes because bindings are ranked
based on their attributes.
@xedin xedin requested a review from hborla as a code owner June 12, 2023 23:32
@xedin
Copy link
Contributor Author

xedin commented Jun 12, 2023

@swift-ci please test

@xedin xedin merged commit 7143203 into swiftlang:main Jun 13, 2023
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.

1 participant