summaryrefslogtreecommitdiff
path: root/test/files/run/showraw_tree_ultimate.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-06-30 03:37:17 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-07-02 11:48:09 +0200
commit3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c (patch)
tree7583751eced61efe1e02686e2f068409ce07ed38 /test/files/run/showraw_tree_ultimate.scala
parentcba0cbb892e991a0946270d1a7da63993f248225 (diff)
downloadscala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.tar.gz
scala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.tar.bz2
scala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.zip
further improves reflection printers
Diffstat (limited to 'test/files/run/showraw_tree_ultimate.scala')
-rw-r--r--test/files/run/showraw_tree_ultimate.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/showraw_tree_ultimate.scala b/test/files/run/showraw_tree_ultimate.scala
index dfd7abde52..a8507623bc 100644
--- a/test/files/run/showraw_tree_ultimate.scala
+++ b/test/files/run/showraw_tree_ultimate.scala
@@ -5,6 +5,7 @@ object Test extends App {
val tb = runtimeMirror(getClass.getClassLoader).mkToolBox()
val tree1 = reify(new collection.immutable.HashMap[String, String])
val tree2 = reify(new collection.mutable.HashMap[String, String])
- println(showRaw(tb.typeCheck(tree1.tree), printIds = true, printKinds = true, printTypes = true))
- println(showRaw(tb.typeCheck(tree2.tree), printIds = true, printKinds = true, printTypes = true))
+ def stabilize(s: String) = """#\d+""".r.replaceAllIn(s, "#<id>")
+ println(stabilize(showRaw(tb.typeCheck(tree1.tree), printIds = true, printKinds = true, printTypes = true)))
+ println(stabilize(showRaw(tb.typeCheck(tree2.tree), printIds = true, printKinds = true, printTypes = true)))
} \ No newline at end of file