summaryrefslogtreecommitdiff
path: root/test/files/run/macro-bodyexpandstoimpl/Impls_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-bodyexpandstoimpl/Impls_1.scala')
-rw-r--r--test/files/run/macro-bodyexpandstoimpl/Impls_1.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/macro-bodyexpandstoimpl/Impls_1.scala b/test/files/run/macro-bodyexpandstoimpl/Impls_1.scala
index 9c1e4ee46d..56c5252f31 100644
--- a/test/files/run/macro-bodyexpandstoimpl/Impls_1.scala
+++ b/test/files/run/macro-bodyexpandstoimpl/Impls_1.scala
@@ -7,6 +7,8 @@ object Impls {
def refToFoo_impl(c: Ctx)(dummy: c.Expr[Int]) = {
import c.universe._
val body = Select(Ident(TermName("Impls")), TermName("foo"))
+ val global = c.universe.asInstanceOf[scala.tools.nsc.Global]
+ global.analyzer.markMacroImplRef(body.asInstanceOf[global.Tree])
c.Expr[Int](body)
}
} \ No newline at end of file