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










                                                       
import scala.reflect.runtime.universe._

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

  weakTypeTagIsnotClassManifest[Int]
  weakTypeTagIsnotClassManifest[String]
  weakTypeTagIsnotClassManifest[Array[Int]]
}