summaryrefslogblamecommitdiff
path: root/test/files/neg/interop_classtags_arenot_manifests.scala
blob: 391143c6e8a16160abb54f67ede0a9e1a85cbe7b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                         
                         







                                            
import scala.reflect.{ClassTag, classTag}

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

  classTagIsnotManifest[Int]
  classTagIsnotManifest[String]
  classTagIsnotManifest[Array[Int]]
}