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

Draft: Overloading result-based pruning shouldn't prefer inapplicable alt #21730

Closed
wants to merge 1 commit into from

Commits on Oct 8, 2024

  1. Draft: Overloading result-based pruning shouldn't prefer inapplicable…

    … alt
    
    If an overloaded alternative in `alts` does not end up being part of the
    `candidate` list in `resolveOverloaded1`, then it is not applicable to the
    current arguments and should not be considered by `adaptByResult`. This avoids
    discarding working solutions in favor of invalid ones when the working solution
    involves a match type in the method result type that will fail `resultConforms`.
    
    Fixes scala#21410.
    smarter committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    8508c0d View commit details
    Browse the repository at this point in the history