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

Fixes for isLegalPrefix change #22241

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dwijnand
Copy link
Member

Fixes #22062
Fixes #22068
Fixes #22070

@dwijnand dwijnand marked this pull request as ready for review December 18, 2024 18:53
@dwijnand dwijnand requested a review from odersky December 18, 2024 18:53
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

This will hopefully fix more issues. I particularly like how the OpaqueInlineProxy was factored out into its own abstraction.

Except for one comment LGTM

@@ -768,6 +790,7 @@ class Inliner(val call: tpd.Tree)(using Context):
override def typedSelect(tree: untpd.Select, pt: Type)(using Context): Tree = {
val locked = ctx.typerState.ownedVars
val qual1 = typed(tree.qualifier, shallowSelectionProto(tree.name, pt, this, tree.nameSpan))
selectionType(tree, qual1) // side-effect
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be good to be more specific what side effect (error messages?, anything else?)

@odersky odersky assigned dwijnand and unassigned odersky Jan 11, 2025
@odersky
Copy link
Contributor

odersky commented Jan 11, 2025

This should get in before the cutoff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants