summaryrefslogtreecommitdiff
path: root/test/files/run/t5276_1b.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-04-12 18:55:13 -0700
committerMartin Odersky <odersky@gmail.com>2012-04-12 18:55:13 -0700
commit6061a22fcd3480e18e60254ad06c8a46b2f1ce53 (patch)
tree12e7d3a1798a186d641e3de21430fc6de0470727 /test/files/run/t5276_1b.scala
parentf7a0558059559305a88ffa2c28506b29b2bc57f2 (diff)
parent39a88f5680c3a16bf7ca856683989a2f5481bf69 (diff)
downloadscala-6061a22fcd3480e18e60254ad06c8a46b2f1ce53.tar.gz
scala-6061a22fcd3480e18e60254ad06c8a46b2f1ce53.tar.bz2
scala-6061a22fcd3480e18e60254ad06c8a46b2f1ce53.zip
Merge branch 'master' into topic/sip18
Conflicts: src/compiler/scala/reflect/internal/Definitions.scala Various improvements to SIP 18 reporting. Made scala library and compiler feature-clean.
Diffstat (limited to 'test/files/run/t5276_1b.scala')
-rw-r--r--test/files/run/t5276_1b.scala12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/files/run/t5276_1b.scala b/test/files/run/t5276_1b.scala
index 1ff25504ca..1bc3e246c9 100644
--- a/test/files/run/t5276_1b.scala
+++ b/test/files/run/t5276_1b.scala
@@ -1,14 +1,8 @@
-import scala.tools.nsc.reporters._
-import scala.tools.nsc.Settings
-import reflect.runtime.Mirror.ToolBox
+import scala.reflect.mirror._
object Test extends App {
- val code = scala.reflect.Code.lift{
+ reify {
implicit lazy val x = 2
println(implicitly[Int])
- };
-
- val reporter = new ConsoleReporter(new Settings)
- val toolbox = new ToolBox(reporter)
- toolbox.runExpr(code.tree)
+ }.eval
}