How to use TypeDef.apply reflect API to create a type alias? #19344
Replies: 5 comments 9 replies
-
This is blocking migrating cats-tagless to Scala 3:typelevel/cats-tagless#442 |
Beta Was this translation helpful? Give feedback.
-
You can get it from an existing type alias. We currently do not have a method to create new type symbol. We might want to add this as |
Beta Was this translation helpful? Give feedback.
-
I need to forward a type alias, so I need to define the RHS somehow like this: type T[A1, ..., An] = x.T[A1, ..., An] I guess that doesn't qualify as an existing type alias? |
Beta Was this translation helpful? Give feedback.
-
Also |
Beta Was this translation helpful? Give feedback.
-
Another issue that I have is |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the
TypeDef
API exposed by the reflect API:How can I get a type symbol for a type alias to use
TypeDef.apply
?Beta Was this translation helpful? Give feedback.
All reactions