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 |
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 |
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? |
|
Also |
|
Another issue that I have is |
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
TypeDefAPI exposed by the reflect API:How can I get a type symbol for a type alias to use
TypeDef.apply?All reactions