diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-08-08 08:15:56 -0700 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-08-08 08:15:56 -0700 |
commit | ed5c1abbfca18a880c79048cc7e9578ae932101d (patch) | |
tree | 7f4dd7f6ea5aaa42b2d473f5095d5134924f7c66 /test/files/run/t7331c.scala | |
parent | e9ccb416b307d853120411572a57cb57867a9afc (diff) | |
parent | 36524c21964696ec71170970c6a65f9bb7aec8f0 (diff) | |
download | scala-ed5c1abbfca18a880c79048cc7e9578ae932101d.tar.gz scala-ed5c1abbfca18a880c79048cc7e9578ae932101d.tar.bz2 scala-ed5c1abbfca18a880c79048cc7e9578ae932101d.zip |
Merge pull request #2800 from densh/topic/toolbox-positions
SI-7331 tb.parse returns unpositioned trees
Diffstat (limited to 'test/files/run/t7331c.scala')
-rw-r--r-- | test/files/run/t7331c.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t7331c.scala b/test/files/run/t7331c.scala new file mode 100644 index 0000000000..75873afcd0 --- /dev/null +++ b/test/files/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 |