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 32fb975 commit 8f29c9aCopy full SHA for 8f29c9a
docs/docs/reference/metaprogramming/tasty-reflect.md
@@ -44,7 +44,7 @@ def natConstImpl(x: Expr[Int])(using Quotes): Expr[Int] = {
44
import quotes.reflect._
45
val xTree: Term = x.asTerm
46
xTree match {
47
- case Inlined(_, _, Literal(Constant.Int(n))) =>
+ case Inlined(_, _, Literal(IntConstant(n))) =>
48
if (n <= 0) {
49
report.error("Parameter must be natural number")
50
'{0}
0 commit comments