diff options
Diffstat (limited to 'tests/pending/run/reify_closure2a.scala')
-rw-r--r-- | tests/pending/run/reify_closure2a.scala | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/pending/run/reify_closure2a.scala b/tests/pending/run/reify_closure2a.scala deleted file mode 100644 index cc194bc6d..000000000 --- a/tests/pending/run/reify_closure2a.scala +++ /dev/null @@ -1,19 +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 dotty.runtime.LegacyApp { - def foo(y: Int): Int => Int = { - val fun = reify{(x: Int) => { - x + y - }} - - val toolbox = cm.mkToolBox() - val dyn = toolbox.eval(fun.tree) - dyn.asInstanceOf[Int => Int] - } - - println(foo(1)(10)) - println(foo(2)(10)) -} |