blob: 650700ae26fd6c8e7a701a73237b7f9aa50c3273 (
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 dotty.runtime.LegacyApp {
val tb = cm.mkToolBox()
val untyped = reify(new Object().getClass).tree
val typed = tb.typecheck(untyped)
println(typed)
println(showRaw(typed.tpe))
}
|