diff --git a/tests/pending/pos/i15475/A.scala b/tests/pending/pos/i15475/A.scala new file mode 100644 index 000000000000..5c1e9ee4ab3e --- /dev/null +++ b/tests/pending/pos/i15475/A.scala @@ -0,0 +1,16 @@ +// A.scala +package x + +def hello = { + xtransform { + val a: Seq[Generic[?]] = null + a + .foreach { to => + to.mthd() + } + } +} + +trait Generic[+T] { + def mthd(): Generic[T] = this +} diff --git a/tests/pending/pos/i15475/X.scala b/tests/pending/pos/i15475/X.scala new file mode 100644 index 000000000000..f1357df844a9 --- /dev/null +++ b/tests/pending/pos/i15475/X.scala @@ -0,0 +1,17 @@ +package x + +import scala.quoted.* + + +transparent inline def xtransform[T](inline expr:T) = ${ + X.transform('expr) +} + +object X { + + def transform[T:Type](x: Expr[T])(using Quotes):Expr[T] = { + import quotes.reflect.* + x + } + +} \ No newline at end of file