summaryrefslogtreecommitdiff
path: root/test/files/run/interop_typetags_are_manifests.scala
blob: 1aca7f52cc0c0f0c1a55c307f047141ec0a65686 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag

object Test extends App {
  def typeTagIsManifest[T: TypeTag : ClassTag] = {
    println(manifest[T])
  }

  typeTagIsManifest[Int]
  typeTagIsManifest[String]
  typeTagIsManifest[Array[Int]]
}