From b719fe50f268f56d3a47a5a6b45d5c6a4d3dffff Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Tue, 17 Jan 2023 17:39:22 +0100 Subject: [PATCH] Add regression test Closes #16265 --- tests/pos-macros/i16265.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos-macros/i16265.scala diff --git a/tests/pos-macros/i16265.scala b/tests/pos-macros/i16265.scala new file mode 100644 index 000000000000..db75fbfa307c --- /dev/null +++ b/tests/pos-macros/i16265.scala @@ -0,0 +1,9 @@ +import scala.quoted.* + +class Foo(val value: Int) + +def foo(exprs: Expr[Any])(using Quotes): Any = + exprs match + case '{ $tuple: (Foo *: tail) } => + val x = '{ ${tuple}.head.value } + ???