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.
using QuoteContext
1 parent 5b006fb commit b855685Copy full SHA for b855685
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