Skip to content

Conversation

@WojciechMazur
Copy link
Contributor

Backports #24489 to the 3.8.0-RC2.

PR submitted by the release tooling.
[skip ci]

Ignore selection prototypes at first when typing type applications.
If we need them later for overloading disambiguation, reveal the ignored
type.

The reason for doing this is that a selection might come from an extension method,
and in this case we should not require the selected name as a member of the result.

This change breaks one test (overloading-specifity-2.scala) that explicitly
tested that we don't consult implicit arguments for disambiguation since the
expected type was a selection that already determined the outcome. This is logic
no longer holds. We have to see whether this change breaks any code in practice.

Fixes #23773

[Cherry-picked 30aa805]
Fixes the Open CB counter example.

[Cherry-picked 0436529]
Base automatically changed from release-3.8.0_backport-24359 to release-3.8.0 November 25, 2025 01:07
@WojciechMazur WojciechMazur merged commit f74a4a9 into release-3.8.0 Nov 25, 2025
60 checks passed
@WojciechMazur WojciechMazur deleted the release-3.8.0_backport-24489 branch November 25, 2025 01:07
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.

3 participants