blob: d7ccc84ea384a594abdd10d93f624a8eafcbf882 (
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 App {
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))
}
|