diff options
Diffstat (limited to 'tests/pending/run/reify_closure8b.scala')
-rw-r--r-- | tests/pending/run/reify_closure8b.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/pending/run/reify_closure8b.scala b/tests/pending/run/reify_closure8b.scala deleted file mode 100644 index f28b18e01..000000000 --- a/tests/pending/run/reify_closure8b.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 { - // will fail because y is a private field - // reification doesn't magically make unavailable stuff available - class Foo(y: Int) { - def fun = reify{y} - } - - try { - val dyn = cm.mkToolBox().eval(new Foo(10).fun.tree) - val foo = dyn.asInstanceOf[Int] - println(foo) - } catch { - case ex: Throwable => - println(ex) - } -} |