Skip to content

Commit 3acc97a

Browse files
committed
Add test
1 parent 7ecc2ed commit 3acc97a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
val f1: Expr[Int => Int] = f
9+
val b1: Expr[Int] = b
10+
case '{ val a: Int = 3; $f(a): Int } =>
11+
val f1: Expr[Int => Int] = f
12+
}

0 commit comments

Comments
 (0)