Skip to content

Only keep denotation for methods in IntegrateMap #23226

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

mbovel
Copy link
Member

@mbovel mbovel commented May 21, 2025

This fixes #23217.

Similarly to #23056, the issues occurs in a situation where the denotation should be reloaded during integrate and is not. The fix is to further tighten the condition to preserve the denotation, preserving it only when the symbol is a method.

@mbovel mbovel requested a review from smarter May 21, 2025 14:11
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

LGTM. Since methods won't show up outside of annotations this shouldn't break anything else, but it seems a bit unprincipled, I guess to be really safe we should rework LambdaType so the paramInfos array is filled lazily as each argument is typed, but that would be a tricky refactor.

@smarter smarter enabled auto-merge May 21, 2025 14:52
@smarter smarter merged commit a172638 into scala:main May 21, 2025
26 of 27 checks passed
@smarter smarter deleted the mb/23217 branch May 21, 2025 22:29
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.

Regression in 3.7.1-RC1: type error when calling dependent method despite types matching
2 participants