diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2011-12-04 20:27:06 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2011-12-04 20:46:58 +0100 |
commit | 9393efc68a2c057a9b6e7d1c148355024d46a8aa (patch) | |
tree | 02a4321829e1bff80b3a9c714437170e1717f0a5 /test/pending/run | |
parent | 3e9e4ecf360e6eda5c26f798abfcb9bb882cf772 (diff) | |
download | scala-9393efc68a2c057a9b6e7d1c148355024d46a8aa.tar.gz scala-9393efc68a2c057a9b6e7d1c148355024d46a8aa.tar.bz2 scala-9393efc68a2c057a9b6e7d1c148355024d46a8aa.zip |
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.
Diffstat (limited to 'test/pending/run')
-rw-r--r-- | test/pending/run/t5230.check | 1 | ||||
-rw-r--r-- | test/pending/run/t5230.scala | 19 |
2 files changed, 0 insertions, 20 deletions
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) -} |