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 4cb967f + 937714c commit 58d94d2Copy full SHA for 58d94d2
tests/pending/pos/i15475/A.scala
@@ -0,0 +1,16 @@
1
+// A.scala
2
+package x
3
+
4
+def hello = {
5
+ xtransform {
6
+ val a: Seq[Generic[?]] = null
7
+ a
8
+ .foreach { to =>
9
+ to.mthd()
10
+ }
11
12
+}
13
14
+trait Generic[+T] {
15
+ def mthd(): Generic[T] = this
16
tests/pending/pos/i15475/X.scala
@@ -0,0 +1,17 @@
+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
17
0 commit comments