diff options
Diffstat (limited to 'tests/disabled/macro/run/showraw_tree_ultimate.scala')
-rw-r--r-- | tests/disabled/macro/run/showraw_tree_ultimate.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/showraw_tree_ultimate.scala b/tests/disabled/macro/run/showraw_tree_ultimate.scala new file mode 100644 index 000000000..0a97622ad --- /dev/null +++ b/tests/disabled/macro/run/showraw_tree_ultimate.scala @@ -0,0 +1,11 @@ +import scala.reflect.runtime.universe._ +import scala.tools.reflect.ToolBox + +object Test extends dotty.runtime.LegacyApp { + val tb = runtimeMirror(getClass.getClassLoader).mkToolBox() + 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(tb.typecheck(tree1.tree), printIds = true, printKinds = true, printTypes = true))) + println(stabilize(showRaw(tb.typecheck(tree2.tree), printIds = true, printKinds = true, printTypes = true))) +} |