From 89bacb9c25a58454ff1878e67f7ea07ffc8c269f Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 12 May 2015 18:30:53 +0200 Subject: Run tests as they were in scala. --- tests/pending/run/t7331c.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pending/run/t7331c.scala (limited to 'tests/pending/run/t7331c.scala') diff --git a/tests/pending/run/t7331c.scala b/tests/pending/run/t7331c.scala new file mode 100644 index 000000000..75873afcd --- /dev/null +++ b/tests/pending/run/t7331c.scala @@ -0,0 +1,11 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + +object Test extends App { + val tb = cm.mkToolBox() + val tree = tb.parse("class C").asInstanceOf[ClassDef] + println(showRaw(tree)) + println(tree.pos) + println(tree.impl.self.pos) +} \ No newline at end of file -- cgit v1.2.3