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

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

  concreteTypeTagIsnotClassManifest[Int]
  concreteTypeTagIsnotClassManifest[String]
  concreteTypeTagIsnotClassManifest[Array[Int]]
}