-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #13947 - Get type parameters for a TypeRepr #13949
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
Conversation
Mima filters need to be updated. Necessary filters are printed in logs and should be added to |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
@@ -36,7 +36,6 @@ import scala.annotation.internal.sharable | |||
import config.Printers.typr | |||
|
|||
object Symbols { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object Symbols { | |
object Symbols { | |
inline def printTypeParams[A]: Unit = ${ printTypeParamsImpl[A] } | ||
|
||
def printTypeParamsImpl[A: Type](using q: Quotes): Expr[Unit] = { | ||
import q.reflect.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import q.reflect.* | |
import quotes.reflect.* |
|
||
inline def printTypeParams[A]: Unit = ${ printTypeParamsImpl[A] } | ||
|
||
def printTypeParamsImpl[A: Type](using q: Quotes): Expr[Unit] = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def printTypeParamsImpl[A: Type](using q: Quotes): Expr[Unit] = { | |
def printTypeParamsImpl[A: Type](using Quotes): Expr[Unit] = { |
@cchantep could you also squash the commits and rebase? |
This was merged in #14088 |
No description provided.