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

Handle default implicits to context parameters under -3.4-migration #19512

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 22, 2024

Synthesized calls for default implicits need a using clause when the method is an implicit method with a context bound parameter, but only in in 3.4-migration. Before this PR we still generated a normal empty parameter list.

Also, we can't rewrite adding a using clause if the argument list is empty, since we are lacking precise position info.

Fixes #19506

Synthesized calls for default implicits needed a using clause when the
method was an implicit method, but had a context bound parameter in
3.4-migration.

Also, we can't rewrite adding a `using` clause if the argument list is
empty, since we are lacking precise position info.

Fixes scala#19506
@odersky odersky requested a review from Kordyjan January 22, 2024 20:04
@odersky odersky added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Jan 22, 2024
@odersky
Copy link
Contributor Author

odersky commented Jan 22, 2024

If this can get still in before 3.4 RC3 is cut, I'd do it. If not it's OK to wait for 3.4.1.

@Kordyjan Kordyjan mentioned this pull request Jan 23, 2024
21 tasks
@Kordyjan Kordyjan merged commit 4ed3838 into scala:main Jan 23, 2024
19 checks passed
@Kordyjan Kordyjan deleted the fix-19506 branch January 23, 2024 11:54
@Kordyjan Kordyjan added this to the 3.4.0 milestone Jan 23, 2024
@Kordyjan Kordyjan added backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" and removed backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. labels Jan 23, 2024
Kordyjan added a commit that referenced this pull request Jan 24, 2024
@WojciechMazur WojciechMazur added backport:done This PR was successfully backported. and removed backport:accepted This PR needs to be backported, once it's been backported replace this tag by "backport:done" labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:done This PR was successfully backported.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing context bound implicit crashes compiler under -source:3.4-migration
3 participants