blob: 739ea55b5f6cce40347678a77b598ea11646ccb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.runtime.universe._
object Test extends dotty.runtime.LegacyApp {
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)))
}
|