Skip to content

Add reflect TypeRef.underlying #16747

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

Closed
wants to merge 1 commit into from

Conversation

nicolasstucki
Copy link
Contributor

Fixes #15799

@@ -2775,6 +2775,9 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
extension (self: TypeRef)
def isOpaqueAlias: Boolean
def translucentSuperType: TypeRepr
/** The type bounds of the referenced type. */
Copy link
Member

Choose a reason for hiding this comment

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

If I have a TypeRef to a class type, then its underlying will be a ClassInfo which I believe we don't want to expose in the reflection API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do not expose those.

@smarter smarter assigned nicolasstucki and unassigned smarter Mar 28, 2023
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.

Reflection: no exported way to access TypeDef#rhs / TypeRef#underlying on a TypeRepr
2 participants