Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Always traverse Inlined.call in linter #24043

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

Draft
som-snytt wants to merge 1 commit into scala:main
base: main
Choose a base branch
Loading
from som-snytt:issue/24034-given-import

Conversation

Copy link
Contributor

@som-snytt som-snytt commented Sep 23, 2025

Previously it incorrectly only looked at call after typer, but it must also look at call after inlining, for intermediate expansions which are not directly written by user.

Fixes #24034

I added names to the iron givens to make it easier to find them in -Yplain-printer output; XXX was deeply nested in an Inlined tree. The restriction on phaseMode was due to a misunderstanding about inlining.

The mechanism of a stack of inlined positions, used to control name look-ups, needs further research or investigation. It's needed for the commented existing test. Speculating that the useful distinction is between the call of a top-most Inlined (normal code) and anything else (expansions and nested inlining); and the existing heuristic for summonInline (which performs resolution at expansion).

Previously it incorrectly only looked at call after typer,
but it must also look at call after inlining, for intermediate
expansions which are not directly written by user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

False positive unused given for circe / iron combination
1 participant

AltStyle によって変換されたページ (->オリジナル) /