Skip to content

Fix #4272: make OrderingConstraint.&.mergeEntries symmetric #4276

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 4 commits into from
Apr 9, 2018

Conversation

Blaisorblade
Copy link
Contributor

@Blaisorblade Blaisorblade commented Apr 9, 2018

Fix #4272.
Debugging revealed that in the failing testcase e2: TypeBounds while e1: TypeRef, and it's not clear why it should be otherwise.

Other fixes are possible, this one is easy to maintain but will repeat a few
checks.

@Blaisorblade Blaisorblade requested review from smarter and removed request for smarter April 9, 2018 00:10
@smarter
Copy link
Member

smarter commented Apr 9, 2018

I think I would deal with this by rewriting the pattern match to match on (e1, e2) to handle all cases in one go

Debugging revealed that in the failing testcase `e2: TypeBounds` while `e1:
TypeRef`, and it's not clear why it should be otherwise.
@Blaisorblade
Copy link
Contributor Author

@smarter What about now? Commits should now also make sense in isolation.

@Blaisorblade Blaisorblade merged commit 9723748 into scala:master Apr 9, 2018
@Blaisorblade Blaisorblade deleted the fix-4272 branch April 9, 2018 14:53
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.

Exception in thread "main" java.lang.AssertionError: cannot merge Constraint(...)
2 participants