summaryrefslogblamecommitdiff
path: root/test/files/run/interop_typetags_are_manifests.scala
blob: 6dc54378191445ccbf31d35cf6a5ce22fa5bc2f3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

                                       
                 









                                                  
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
import internal._

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

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