Skip to content

Commit 8f29c9a

Browse files
Update docs/docs/reference/metaprogramming/tasty-reflect.md
1 parent 32fb975 commit 8f29c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/metaprogramming/tasty-reflect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def natConstImpl(x: Expr[Int])(using Quotes): Expr[Int] = {
4444
import quotes.reflect._
4545
val xTree: Term = x.asTerm
4646
xTree match {
47-
case Inlined(_, _, Literal(Constant.Int(n))) =>
47+
case Inlined(_, _, Literal(IntConstant(n))) =>
4848
if (n <= 0) {
4949
report.error("Parameter must be natural number")
5050
'{0}

0 commit comments

Comments
 (0)