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

Fix 2.13.7 regression in implicit resolution #9829

Merged
merged 1 commit into from Dec 15, 2021
Merged

Conversation

joroKr21
Copy link
Member

@joroKr21 joroKr21 commented Dec 12, 2021

Tweak inferMethodInstance to consider if implicits are enabled

When implicits are disabled, we can't recover later with a conversion.
Esp. when we are already type checking an implicit conversion.

This fixes a regression uncovered in Finch: finagle/finch#1417
Unfortunately I don't have a minimal reproduction for a test.
I guess adding Finch to the community build might be a good idea: scala/community-build#1504

When implicits are disabled, we can't recover later with a conversion.
Esp. when we are already type checking an implicit conversion.

This fixes a regression uncovered in Finch.
@scala-jenkins scala-jenkins added this to the 2.13.8 milestone Dec 12, 2021
@SethTisue SethTisue added the prio:blocker release blocker (used only by core team, only near release time) label Dec 12, 2021
@joroKr21 joroKr21 marked this pull request as ready for review December 12, 2021 22:19
Copy link
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@lrytz lrytz merged commit 1042160 into scala:2.13.x Dec 15, 2021
@joroKr21 joroKr21 deleted the finch-fix branch December 15, 2021 10:40
@SethTisue SethTisue added release-notes worth highlighting in next release notes and removed prio:blocker release blocker (used only by core team, only near release time) labels Dec 15, 2021
@SethTisue SethTisue changed the title Tweak inferMethodInstance to consider if implicits are enabled Fix 2.13.7 regression in implicit resolution Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
4 participants