diff options
Diffstat (limited to 'test/pending/run/reify_closure9b.scala')
-rw-r--r-- | test/pending/run/reify_closure9b.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/pending/run/reify_closure9b.scala b/test/pending/run/reify_closure9b.scala deleted file mode 100644 index a6920b4e02..0000000000 --- a/test/pending/run/reify_closure9b.scala +++ /dev/null @@ -1,18 +0,0 @@ -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 = cm.mkToolBox() - val dyn = toolbox.eval(new Foo(y).fun.tree) - dyn.asInstanceOf[Int] - } - - println(foo(10)) -}
\ No newline at end of file |