From 9393efc68a2c057a9b6e7d1c148355024d46a8aa Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sun, 4 Dec 2011 20:27:06 +0100 Subject: Reification of classes now produces trees that can be compiled and run. Multiple minor fixes to Martin's implementation of reflection infrastructure. Dominating theme is allowing for the fact that compilation via reflection involves numerous exports/imports between various reflection universes. Fixes SI-5230. Review by @odersky. --- test/pending/run/t5230.check | 1 - test/pending/run/t5230.scala | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 test/pending/run/t5230.check delete mode 100644 test/pending/run/t5230.scala (limited to 'test/pending') diff --git a/test/pending/run/t5230.check b/test/pending/run/t5230.check deleted file mode 100644 index 5ef4ff4d04..0000000000 --- a/test/pending/run/t5230.check +++ /dev/null @@ -1 +0,0 @@ -evaluated = 2 diff --git a/test/pending/run/t5230.scala b/test/pending/run/t5230.scala deleted file mode 100644 index 5aab8f9290..0000000000 --- a/test/pending/run/t5230.scala +++ /dev/null @@ -1,19 +0,0 @@ -import scala.tools.nsc.reporters._ -import scala.tools.nsc.Settings -import reflect.runtime.Mirror.ToolBox - -object Test extends App { - val code = scala.reflect.Code.lift{ - class C { - val x = 2 - } - - println(new C().x) - }; - - val reporter = new ConsoleReporter(new Settings) - val toolbox = new ToolBox(reporter) - val ttree = toolbox.typeCheck(code.tree) - val evaluated = toolbox.runExpr(ttree) - println("evaluated = " + evaluated) -} -- cgit v1.2.3