blob: 5f5781323b0d0a813bcfe331dbbe13ca9b5c8ffe (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
import internal._
object Test extends dotty.runtime.LegacyApp {
def typeTagIsManifest[T: TypeTag : ClassTag] = {
println(manifest[T])
}
typeTagIsManifest[Int]
typeTagIsManifest[String]
typeTagIsManifest[Array[Int]]
}
|