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.
2 parents 5298123 + b855685 commit 06595f7Copy full SHA for 06595f7
docs/docs/reference/metaprogramming/macros.md
@@ -223,7 +223,7 @@ The compiler takes an environment that maps variable names to Scala `Expr`s.
223
```scala
224
import scala.quoted.{given _, _}
225
226
-def compile(e: Exp, env: Map[String, Expr[Int]]): Expr[Int] = e match {
+def compile(e: Exp, env: Map[String, Expr[Int]])(using QuoteContext): Expr[Int] = e match {
227
case Num(n) =>
228
Expr(n)
229
case Plus(e1, e2) =>
0 commit comments