summaryrefslogblamecommitdiff
path: root/test/files/run/showraw_tree_ids.scala
blob: ea9a3cd4c22d252e594582e301f52c369689452d (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                     


                                                                  
 
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])
  def stabilize(s: String) = """#\d+""".r.replaceAllIn(s, "#<id>")
  println(stabilize(showRaw(tree1.tree, printIds = true)))
  println(stabilize(showRaw(tree2.tree, printIds = true)))
}