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 210ba8b commit d4d8616Copy full SHA for d4d8616
tests/pos/scala2-macro-compat-1.scala
@@ -20,7 +20,7 @@ object LineNumberMacro2 {
20
object LineNumberMacro3 {
21
import scala.quoted._
22
def thisLineNumberExpr(using qctx: QuoteContext): Expr[Int] = {
23
- import qctx.tasty.{_, given _}
+ import qctx.tasty._
24
Expr(rootPosition.startLine + 1)
25
}
26
tests/run-macros/tasty-tree-map/quoted_1.scala
@@ -5,7 +5,7 @@ object Macros {
5
implicit inline def identityMaped[T](x: => T): T = ${ impl('x) }
6
7
def impl[T: Type](x: Expr[T])(using qctx: QuoteContext) : Expr[T] = {
8
9
val identityMap = new TreeMap { }
10
val transformed = identityMap.transformTerm(x.unseal).seal.cast[T]
11
transformed
0 commit comments