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 7ecc2ed commit 3acc97aCopy full SHA for 3acc97a
tests/pos/quoted-splice-pattern-applied.scala
@@ -0,0 +1,12 @@
1
+import scala.quoted._
2
+
3
+def f(x: Expr[Int])(using QuoteContext) = x match {
4
+ case '{ $f($a: Int): Int } =>
5
+ val f1: Expr[Int => Int] = f
6
+ val a1: Expr[Int] = a
7
+ case '{ def a: Int = $f($b: Int); () } =>
8
9
+ val b1: Expr[Int] = b
10
+ case '{ val a: Int = 3; $f(a): Int } =>
11
12
+}
0 commit comments