Skip to content
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

Backport "A slightly more conservative version of #14218" #18370

Closed
wants to merge 1 commit into from

Conversation

Kordyjan
Copy link
Contributor

@Kordyjan Kordyjan commented Aug 9, 2023

Backports #18352

Two changes

 - Fix `hasUpperBound` to work correctly for higher-kinded types
 - A more conservative fix in `IsFullyDefinedAccumulator`. We now maintain
   the symmetry that

     - if variance < 0, we maximize
     - if variance > 0 (and Nothing is admissible) we minimize
     - only if variance = 0, we use the upper bound as a tie breaker

   Previously, we maximized even if variance > 0 if there was an upper but
   no lower bound. But that was asymmetric since there is no corresponding
   case where we minimize at variance < 0 if there is a lower but no upper
   bound.
@Kordyjan
Copy link
Contributor Author

Kordyjan commented Aug 9, 2023

Closing, as the PR head needs to be on the same repo as a base, for the "merge queue at home" approach to work properly.

#18371 is now the correct PR.

@Kordyjan Kordyjan closed this Aug 9, 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.

2 participants