aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/showraw_tree_ids.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/showraw_tree_ids.scala')
-rw-r--r--tests/disabled/macro/run/showraw_tree_ids.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/showraw_tree_ids.scala b/tests/disabled/macro/run/showraw_tree_ids.scala
new file mode 100644
index 000000000..739ea55b5
--- /dev/null
+++ b/tests/disabled/macro/run/showraw_tree_ids.scala
@@ -0,0 +1,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)))
+}