diff options
Diffstat (limited to 'test/pending/run/reify_closure9a.scala')
-rw-r--r-- | test/pending/run/reify_closure9a.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/pending/run/reify_closure9a.scala b/test/pending/run/reify_closure9a.scala index 1fc18cfa13..dddfa3f6c2 100644 --- a/test/pending/run/reify_closure9a.scala +++ b/test/pending/run/reify_closure9a.scala @@ -1,14 +1,18 @@ -import scala.reflect.mirror._ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{universe => ru} +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + object Test extends App { def foo(y: Int) = { class Foo(val y: Int) { def fun = reify{y} } - val toolbox = mkToolBox() + val toolbox = cm.mkToolBox() val dyn = toolbox.runExpr(new Foo(y).fun.tree) dyn.asInstanceOf[Int] } println(foo(10)) -} +}
\ No newline at end of file |