-
Notifications
You must be signed in to change notification settings - Fork 1.1k
TASTY: no way to access baseClasses
of AppliedType
#8514
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
Comments
@nicolasstucki could you check this issue please? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
(On the main issue: I’m aware the API is incomplete and extensions are being considered, and things like this should be fine, but I cannot say more). |
This seems like a useful improvement regardless, but speaking as a ZIO contributor, I know we are relying on this functionality (or its equivalent) for the new environment encoding, which has proven to be a smash hit among ZIO users, but which only has partial support in Dotty. Thanks for reporting! |
Fix #8514: Add Reflection.Type.baseClasses
Seem like this is not enough. Seems like just this method does not allow to get applied supertype:
I can get Seems like
|
If you need some API to be exposed, I encourage you to make a PR to do so yourself. |
Yup, trying to do that. |
fixes #8514, TypeApi#baseType exposed into Tasty
I'm working on re-implementation of izumi-reflect for Dotty.
So far I made some substantial progress but seems like there is a blocker.
The primary problem is: seems like there is no way to get access to
baseClasses
of a type:Let's assume that we have the following definitions:
On scala2 I can call
.baseClasses
method on a type ofB
and get a list containingA[[T] => X[Int, T]]
.In dotty
AppliedType
has onlytycon
method which does not allow me to inspect applied parents.See also: 7mind/dotty-typetag-research#2 ; zio/izumi-reflect#22
The text was updated successfully, but these errors were encountered: