From 41a8d29fb587b7a8ba72f743dd7361a79f819bbe Mon Sep 17 00:00:00 2001 From: Jan Chyb Date: Fri, 30 Jun 2023 13:01:48 +0200 Subject: [PATCH] Add regression test for issue #15715 [Cherry-picked 0ff35b10c930f82b79755a23999408e6c1159c1c] --- tests/pos/i15715.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i15715.scala diff --git a/tests/pos/i15715.scala b/tests/pos/i15715.scala new file mode 100644 index 000000000000..d6db1002aace --- /dev/null +++ b/tests/pos/i15715.scala @@ -0,0 +1,7 @@ +import scala.quoted.* + +def macroImpl(using Quotes) = + val expr = Expr(1) + Some((1, 2)).map { (x, y) => + '{ ${expr} + 1 } + }