summaryrefslogtreecommitdiff
path: root/test/files/neg/interop_typetags_arenot_manifests.scala
blob: 7ed1f3857b8d776c91b2a6a1d03e9a317e5ffa43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.runtime.universe._

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

  typeTagIsnotManifest[Int]
  typeTagIsnotManifest[String]
  typeTagIsnotManifest[Array[Int]]
}