Skip to content

Simplify ConstraintHandling #9400

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
Jul 21, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 21, 2020

Drop AbstractContex and AbsentContext. Instead,

  • all operations in ConstrainHandling take a normal Context parameter
  • a shared context in the instance is only used in TypeComparer, but
    not in ConstraintHandling
  • ConstraintHandling calls "down" to TypeComparer using separate
    isSub, isSame operations that take a context.

Drop AbstractContex and AbsentContext. Instead,

 - all operations in ConstrainHandling take a normal Context parameter
 - a shared context in the instance is only used in TypeComparer, but
   not in ConstraintHandling
 - ConstraintHandling calls "down" to TypeComparer using separate
   `isSub`, `isSame` operations that take a context.
@odersky odersky force-pushed the simplify-typecomparer branch from d070e66 to d505ef3 Compare July 21, 2020 08:37
@odersky odersky merged commit 93e4416 into scala:master Jul 21, 2020
@odersky odersky deleted the simplify-typecomparer branch July 21, 2020 12:14
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