-
Notifications
You must be signed in to change notification settings - Fork 1.1k
No way to list the type parameters from a quotes Symbol or TypeRepr #13947
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
This is a bit trickier than it would seem. The assumption above is that there is a single type argument list. This is not necessarily true as some definitions can have multiple type parameter lists. For example extension [A](a: A) def f[B](b: B): C = ???
// becomes internally
def f[A](a: A)[B](b: B): C |
Currently, the idea is to get the |
For me, the type arguments/parameters on the functions through extension don't correspond to the definition of resolving the type arguments/parameters. |
It's not possible in quotes to do something like:
In dotc it's possible to:
The text was updated successfully, but these errors were encountered: