blob: 4540bb6b376f6366ceb2bb71371da67e90174278 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.runtime.universe._
object Test extends dotty.runtime.LegacyApp {
def fooTypeTag[T: TypeTag] = {
println(implicitly[TypeTag[T]])
println(implicitly[TypeTag[List[T]]])
}
fooTypeTag[Int]
}
|