aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/interop_typetags_are_manifests.scala
blob: 071c3ff25f5cb58f32b315cc5c9f66f412121b35 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                  
 
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]]
}