We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ad7c7f commit 49408edCopy full SHA for 49408ed
tests/run-macros/term-show/Macro_1.scala
@@ -4,8 +4,7 @@ object TypeToolbox {
4
inline def show(inline className: String): String = ${ showImpl('className) }
5
private def showImpl(className: Expr[String])(using Quotes) : Expr[String] =
6
import quotes.reflect.*
7
- val Expr(name) = className: @unchecked
+ val name = className.valueOrAbort
8
val res = Symbol.requiredClass(name).tree.show
9
- println(res)
10
Expr(res)
11
}
0 commit comments