From 36da313ddfc62d1356d2d1b8d37acf33cfad0794 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 23 Mar 2023 14:05:31 +0100 Subject: [PATCH] Add regression test for #15709 Closes #15709 --- tests/pos-macros/i15709.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos-macros/i15709.scala diff --git a/tests/pos-macros/i15709.scala b/tests/pos-macros/i15709.scala new file mode 100644 index 000000000000..845ed35d1a55 --- /dev/null +++ b/tests/pos-macros/i15709.scala @@ -0,0 +1,4 @@ +import quoted.* + +inline def foo(s: Singleton): Unit = ${ fooImpl('s) } +def fooImpl(s: Expr[Singleton])(using Quotes) = '{}