-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix pkg obj prefix of opaque tp ext meth #21527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine but could profit from a refactoring.
- Move
makePackageObjPrefixExplciit
from TypeOps to TypeUtils and make it an extension method on Type - Drop the extension method in findRef.
d53c798
to
3b06cad
Compare
There is use of `makePackageObjPrefixExplicit` within `accessibleType`, which is called on the result of findRef in typedIdent. But in `tryExtension` it's no such use. We could fix it in the usage of the results in `tryExtension`, but I thought perhaps we could fix it for all call sites, by handling it within findRef.
3b06cad
to
7db83c5
Compare
@dwijnand
|
Yes, that all looks correct. I'll PR the cases, thank you! |
TypeOps.makePackageObjPrefixExplicit is a part of
accessibleType
,which is called on the result of
findRef
intypedIdent
. But intryExtension
it's not. We could fix it in the usage of the results intryExtension
, but I thought perhaps we could fix it for all callsites, by handling it within
findRef
.Fixes #18097