blob: 2e6af545d0f4b5558ab7111ec58bd763057e64f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{universe => ru}
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
class C
object Test extends dotty.runtime.LegacyApp {
val Block(List(ValDef(_, _, tpt: CompoundTypeTree, _)), _) = reify{ val x: C{} = ??? }.tree
println(tpt)
println(tpt.templ.parents)
println(tpt.templ.self)
println(tpt.templ.body)
}
|