Skip to content

Better fix for handling Equal constraints in matchTypes. #9433

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
May 9, 2017
Merged

Better fix for handling Equal constraints in matchTypes. #9433

merged 1 commit into from
May 9, 2017

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented May 9, 2017

The fix committed in 15fb957 still
allows for the possibility that we can bind one type as part of
processing the Equal constraint and then later come along and attempt to
bind the LValue version of that type as part of processing another
constraint.

I don't have a test case for this as it was discovered by thought
process, not testing, and constructing a test case isn't really feasible
because it relies on a lot of specifics about the order in which things
happen to be processed the constraint solver.

The fix committed in 15fb957 still
allows for the possibility that we can bind one type as part of
processing the Equal constraint and then later come along and attempt to
bind the LValue version of that type as part of processing another
constraint.

I don't have a test case for this as it was discovered by thought
process, not testing, and constructing a test case isn't really feasible
because it relies on a lot of specifics about the order in which things
happen to be processed the constraint solver.
@rudkx
Copy link
Contributor Author

rudkx commented May 9, 2017

@swift-ci Please smoke test

@rudkx rudkx merged commit b8b62a2 into swiftlang:master May 9, 2017
@rudkx rudkx deleted the better-fix-for-rdar31724272 branch May 22, 2017 14:41
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