From 27793831b2a7ff9112b6956f6a3e24eb3673be1f Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Mon, 20 Nov 2023 08:55:44 +0000 Subject: [PATCH] Add an indirection to macro-use testcase --- zinc/src/sbt-test/macros/macro-use/lib/Data2.scala | 3 +++ zinc/src/sbt-test/macros/macro-use/lib/Macro.scala | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 zinc/src/sbt-test/macros/macro-use/lib/Data2.scala diff --git a/zinc/src/sbt-test/macros/macro-use/lib/Data2.scala b/zinc/src/sbt-test/macros/macro-use/lib/Data2.scala new file mode 100644 index 000000000..4b4f79644 --- /dev/null +++ b/zinc/src/sbt-test/macros/macro-use/lib/Data2.scala @@ -0,0 +1,3 @@ +package lib + +class Data2 extends Data diff --git a/zinc/src/sbt-test/macros/macro-use/lib/Macro.scala b/zinc/src/sbt-test/macros/macro-use/lib/Macro.scala index f42ade827..19b003eab 100644 --- a/zinc/src/sbt-test/macros/macro-use/lib/Macro.scala +++ b/zinc/src/sbt-test/macros/macro-use/lib/Macro.scala @@ -9,7 +9,7 @@ object Macro { def impl(c: Context)(s: c.Tree): c.Tree = { import c.universe._ - val suffix = new Data().suffix + val suffix = new Data2().suffix q"""$s + $suffix""" } }