Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Retract SynthesizeExtMethodReceiver mode when when going deeper in overloading resolution #18759

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 25, 2023

Retract SynthesizeExtMethodReceiver mode when going deeper in overloding resolution

The SynthesizeExtMethodReceiver mode is supposed to be turned on only for the direct application of of a synthesized receiver to the qualifier of an extension method selection. Previously its lifetime was accidentally extended when overloading resolution looked at subsequent parameter lists because the first one was not enough to disambiguate.

Fixes #18745
Fixes #18744

…ding resolution

The SynthesizeExtMethodReceiver mode is supposed to be turned on only for the
direct application of of a synthesized receiver to the qualifier of an
extension method selection. previously its lifetime was accidentally extended
when overloading resolution looking at subsequent parameter lists because the
first one was not enough to disambiguate.

Fixes scala#18745
Fixes scala#18744
@dwijnand dwijnand merged commit f98a3aa into scala:main Oct 25, 2023
18 checks passed
@dwijnand dwijnand deleted the fix-18745 branch October 25, 2023 12:32
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
WojciechMazur added a commit that referenced this pull request Jun 23, 2024
…eper in overloading resolution" to LTS (#20739)

Backports #18759 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants