We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 618dcee commit 220dc0aCopy full SHA for 220dc0a
_overviews/scala3-macros/tutorial/macros.md
@@ -216,7 +216,7 @@ inline def sumNow(inline nums: Int*): Int =
216
def sumCode(nums: Expr[Seq[Int]])(using Quotes): Expr[Int] =
217
import quotes.reflect.report
218
nums match
219
- case Varargs(numberExprs) => // numberExprs: Seq[Expr[Int]]
+ case Varargs(numberExprs) => // numberExprs: Seq[Expr[Int]]
220
val numbers: Seq[Int] = numberExprs.map(_.valueOrAbort)
221
Expr(numbers.sum)
222
case _ => report.errorAndAbort(
0 commit comments