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


                                       
                                                  


                        


                                      
 
import scala.reflect.runtime.universe._

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

  weakTypeTagIsnotManifest[Int]
  weakTypeTagIsnotManifest[String]
  weakTypeTagIsnotManifest[Array[Int]]
}