summaryrefslogtreecommitdiff
path: root/test/files/run/t5418b.scala
blob: 08e8bb163b0d9fffb77e65d866677be794f083fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox

object Test extends App {
  val tb = cm.mkToolBox()
  val untyped = reify(new Object().getClass).tree
  val typed = tb.typeCheck(untyped)
  println(typed)
  println(showRaw(typed.tpe))
}