aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/showraw_tree_types_typed.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/showraw_tree_types_typed.scala')
-rw-r--r--tests/disabled/macro/run/showraw_tree_types_typed.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/showraw_tree_types_typed.scala b/tests/disabled/macro/run/showraw_tree_types_typed.scala
new file mode 100644
index 000000000..e24eac9f8
--- /dev/null
+++ b/tests/disabled/macro/run/showraw_tree_types_typed.scala
@@ -0,0 +1,10 @@
+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])
+ println(showRaw(tb.typecheck(tree1.tree), printTypes = true))
+ println(showRaw(tb.typecheck(tree2.tree), printTypes = true))
+}