diff options
Diffstat (limited to 'test/pending/run/reify_closure9b.scala')
-rw-r--r-- | test/pending/run/reify_closure9b.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/pending/run/reify_closure9b.scala b/test/pending/run/reify_closure9b.scala index 32b05d00ee..df9db9b806 100644 --- a/test/pending/run/reify_closure9b.scala +++ b/test/pending/run/reify_closure9b.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(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 |