Skip to content

Commit 9a1b726

Browse files
committed
address easy cr comments
1 parent ef57c2f commit 9a1b726

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/run-macros/term-show/Macro_1.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ object TypeToolbox {
1010
inline def show(inline className: String): String = ${ showImpl('className) }
1111
private def showImpl(className: Expr[String])(using Quotes) : Expr[String] =
1212
import quotes.reflect.*
13-
val Expr(name) = className: @unchecked
13+
val name = className.valueOrAbort
1414
val res = Symbol.requiredClass(name).tree.show
15-
println(res)
1615
Expr(res)
1716
*/
1817
}

0 commit comments

Comments
 (0)