Skip to content

Commit 4eaa5d9

Browse files
authored
Add regression test (#16710)
Closes #16265
2 parents 4cdd19b + b719fe5 commit 4eaa5d9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos-macros/i16265.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import scala.quoted.*
2+
3+
class Foo(val value: Int)
4+
5+
def foo(exprs: Expr[Any])(using Quotes): Any =
6+
exprs match
7+
case '{ $tuple: (Foo *: tail) } =>
8+
val x = '{ ${tuple}.head.value }
9+
???

0 commit comments

Comments
 (0)