summaryrefslogtreecommitdiff
path: root/test/files/run/t5276_1b.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-02-14 00:05:18 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-02-14 20:58:43 +0100
commitf6174691647bb1fae7e86d53790b1e540b890755 (patch)
treed5bfae16a8c494e3a6757ba1bca02fc4ad3b4c3b /test/files/run/t5276_1b.scala
parenta2ce52f838d7ae4a1af93e5149e38ef87e9cd06d (diff)
downloadscala-f6174691647bb1fae7e86d53790b1e540b890755.tar.gz
scala-f6174691647bb1fae7e86d53790b1e540b890755.tar.bz2
scala-f6174691647bb1fae7e86d53790b1e540b890755.zip
Preprocessing for reifees
Diffstat (limited to 'test/files/run/t5276_1b.scala')
-rw-r--r--test/files/run/t5276_1b.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t5276_1b.scala b/test/files/run/t5276_1b.scala
new file mode 100644
index 0000000000..31582201fb
--- /dev/null
+++ b/test/files/run/t5276_1b.scala
@@ -0,0 +1,15 @@
+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{
+ implicit lazy val x = 2
+ implicitly[Int]
+ };
+
+ val reporter = new ConsoleReporter(new Settings)
+ val toolbox = new ToolBox(reporter)
+ val ttree = toolbox.typeCheck(code.tree)
+ toolbox.runExpr(ttree)
+}