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