-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Minimized code
def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
import qctx.tasty._
'{
$e+$e
}
Output
def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
import qctx.tasty._
'
$e+$e
Expectation
That the expression stays unchanged
Workaround
Write
def f(e: Expr[Int])(using qctx: QuoteContext): Expr[Int] =
import qctx.tasty._
'{ $e+$e
}
Where the quoted expression starts right after '{
.