We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6717023 commit 7727ec5Copy full SHA for 7727ec5
docs/docs/reference/other-new-features/tasty-reflect.md
@@ -24,7 +24,7 @@ To provide reflection capabilities in macros we need to add an implicit paramete
24
import scala.quoted._
25
import scala.tasty._
26
27
-inline def natConst(x: => Int): Int = ~natConstImpl('(x))
+inline def natConst(x: => Int): Int = ${natConstImpl('{x})}
28
29
def natConstImpl(x: Expr[Int])(implicit reflection: Reflection): Expr[Int] = {
30
import reflection._
0 commit comments