Skip to content

[ConstraintSolver] Prioritize certain type variables while looking for bindings #12198

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
Oct 2, 2017

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 30, 2017

Presence of some constraints (Subtype at least) requires a certain
contextual ranking of the type variables associated with them when
it comes to picking bindings, otherwise it might lead to no or
invalid solutions, because only a set of the bindings for the best
type variable is attempted.

Resolves: rdar://problem/22898292

…r bindings

Presence of some constraints (Subtype at least) requires a certain
contextual ranking of the type variables associated with them when
it comes to picking bindings, otherwise it might lead to no or
invalid solutions, because only a set of the bindings for the best
type variable is attempted.

Resolves: rdar://problem/22898292
@xedin
Copy link
Contributor Author

xedin commented Sep 30, 2017

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Sep 30, 2017

@swift-ci please test source compatibility

@xedin xedin requested a review from rudkx October 1, 2017 00:28
Copy link
Contributor

@rudkx rudkx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's hope this sticks!

@xedin xedin merged commit 3100088 into swiftlang:master Oct 2, 2017
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