summaryrefslogtreecommitdiff
path: root/test/files/run/showraw_mods.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-06-15 13:35:54 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-06-19 04:26:38 +0200
commit3be520bcfc84f207d172934f9b147e31355cd877 (patch)
tree94422d1e31d2f6adaba527a90bd8d46a22ecb3a5 /test/files/run/showraw_mods.scala
parent885d64dce1c3a34b01f4ffcbd2132838d3c60443 (diff)
downloadscala-3be520bcfc84f207d172934f9b147e31355cd877.tar.gz
scala-3be520bcfc84f207d172934f9b147e31355cd877.tar.bz2
scala-3be520bcfc84f207d172934f9b147e31355cd877.zip
improves showRaw
addresses concerns raised in http://groups.google.com/group/scala-user/browse_thread/thread/de5a5be2e083cf8e
Diffstat (limited to 'test/files/run/showraw_mods.scala')
-rw-r--r--test/files/run/showraw_mods.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/showraw_mods.scala b/test/files/run/showraw_mods.scala
new file mode 100644
index 0000000000..a10e4821dc
--- /dev/null
+++ b/test/files/run/showraw_mods.scala
@@ -0,0 +1,6 @@
+import scala.reflect.runtime.universe._
+
+object Test extends App {
+ val tree = reify{trait C { private[this] val x = 2; var y = x; lazy val z = y }}
+ println(showRaw(tree.tree))
+} \ No newline at end of file