Skip to content

Drill into QuotePattern bindings symbol info #22987

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

Fixes #22981

The phase examines trees, not every type. Maybe this is just a matter of adding a case to Other trees. This fix also works at transformBind.

Alternatively, it reflects the strategy of the phase in 3.6, that if the mini-phase API doesn't offer structural support, then it might as well do a custom traversal. Then the question is whether mini-phase is just overhead of dispatch.

Besides checking imports, types could appear only in (possibly inferred) types.

@som-snytt som-snytt marked this pull request as ready for review April 15, 2025 23:44
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.

False positive unused import on type used in macro type pattern
1 participant