From 23409794d310a41be7eba4fa5060afa5f9c65f87 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 4 May 2023 17:28:26 +0200 Subject: [PATCH] Add regression test Closes #17409 --- tests/pos-macros/i17409.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pos-macros/i17409.scala diff --git a/tests/pos-macros/i17409.scala b/tests/pos-macros/i17409.scala new file mode 100644 index 000000000000..449e0576d84b --- /dev/null +++ b/tests/pos-macros/i17409.scala @@ -0,0 +1,10 @@ +import scala.quoted.* + +transparent inline def thing = + ${ thingImpl } + +def thingImpl(using Quotes): Expr[Any] = + '{ + def makeThing: { def me: this.type } = ??? + makeThing + }