From 396c01b2c10fe361e92b060e9d524921bd3849d6 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sun, 29 Jan 2012 15:59:08 +0100 Subject: Test for https://issues.scala-lang.org/browse/SI-5418 --- test/pending/run/t5418.check | 0 test/pending/run/t5418.scala | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/pending/run/t5418.check create mode 100644 test/pending/run/t5418.scala (limited to 'test') diff --git a/test/pending/run/t5418.check b/test/pending/run/t5418.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/pending/run/t5418.scala b/test/pending/run/t5418.scala new file mode 100644 index 0000000000..065710f15e --- /dev/null +++ b/test/pending/run/t5418.scala @@ -0,0 +1,14 @@ +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{ + new Object().getClass + }; + + val reporter = new ConsoleReporter(new Settings) + val toolbox = new ToolBox(reporter) + val ttree = toolbox.typeCheck(code.tree) + toolbox.runExpr(ttree) +} \ No newline at end of file -- cgit v1.2.3