aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/interop_classtags_arenot_manifests.scala
blob: 3555118d62ddd1fd269c57a08955926fd11e1e9e (plain) (blame)
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]]
}