1 2 3 4 5 6
import scala.reflect.runtime.universe._ object Test extends dotty.runtime.LegacyApp { def foo[T: TypeTag] = println(implicitly[TypeTag[T]]) foo }