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

Record ordering constraint between HK type variables #9733

Merged
merged 1 commit into from
Sep 18, 2020

Commits on Sep 18, 2020

  1. Record ordering constraint between HK type variables

    If `?F <: [X] => ?G[X]`, then the ordering part of the constraint should
    record `?F <: ?G`, otherwise constraints won't be propagated correctly.
    
    It's not clear to me if we should make a similar change in `stripParams`
    but note that doing so would require being a bit careful: since we use
    the upper bound of a type variable to determine its kind, we can't just
    replace it by `[X] => ?G[X]` by `AnyKind`.
    
    Fixes scala#9676.
    smarter committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    d850991 View commit details
    Browse the repository at this point in the history