summaryrefslogblamecommitdiff
path: root/test/files/neg/interop_typetags_without_classtags_arenot_manifests.scala
blob: 0d48ae5cd0f53c86944b6f0f1b0fbad68717a3b1 (plain) (tree)
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 typeTagWithoutClassTagIsnotManifest[T: TypeTag] = {
    println(manifest[T])
  }

  typeTagWithoutClassTagIsnotManifest[Int]
  typeTagWithoutClassTagIsnotManifest[String]
  typeTagWithoutClassTagIsnotManifest[Array[Int]]
}