summaryrefslogtreecommitdiff
path: root/test/files/run/showraw_tree_types_untyped.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_tree_types_untyped.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_tree_types_untyped.scala')
-rw-r--r--test/files/run/showraw_tree_types_untyped.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/showraw_tree_types_untyped.scala b/test/files/run/showraw_tree_types_untyped.scala
new file mode 100644
index 0000000000..4df2eb66b2
--- /dev/null
+++ b/test/files/run/showraw_tree_types_untyped.scala
@@ -0,0 +1,8 @@
+import scala.reflect.runtime.universe._
+
+object Test extends App {
+ val tree1 = reify(new collection.immutable.HashMap[String, String])
+ val tree2 = reify(new collection.mutable.HashMap[String, String])
+ println(showRaw(tree1.tree, printTypes = true))
+ println(showRaw(tree2.tree, printTypes = true))
+} \ No newline at end of file