aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/showraw_tree_types_typed.scala
blob: e24eac9f83c327a4081552d20a626c80fe2c14ed (plain) (blame)
1
2
3
4
5
6
7
8
9
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))
}