aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/interop_typetags_arenot_classmanifests.scala
blob: 04857aaa6d98a967e07c526d7725df93b1d9c666 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                               
import scala.reflect.runtime.universe._

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

  typeTagIsnotClassManifest[Int]
  typeTagIsnotClassManifest[String]
  typeTagIsnotClassManifest[Array[Int]]
}