summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala')
-rw-r--r--test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala b/test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala
index 632708a125..67666a632b 100644
--- a/test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala
+++ b/test/files/run/macro-reflective-ma-normal-mdmi/Test_2.scala
@@ -1,5 +1,7 @@
object Test extends App {
- import scala.reflect.mirror._
+ import scala.reflect.runtime.universe._
+ import scala.reflect.runtime.{currentMirror => cm}
+ import scala.tools.reflect.ToolBox
val tree = Apply(Select(Ident("Macros"), newTermName("foo")), List(Literal(Constant(42))))
- println(Expr(tree).eval)
+ println(cm.mkToolBox().runExpr(tree))
}