summaryrefslogtreecommitdiff
path: root/test/files/neg/interop_abstypetags_arenot_classtags.scala
blob: e3911c1588832eefee50f1fda92f9acd7ec3c773 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.runtime.universe._
import scala.reflect.{ClassTag, classTag}

object Test extends App {
  def absTypeTagIsnotClassTag[T: AbsTypeTag] = {
    println(classTag[T])
  }

  absTypeTagIsnotClassTag[Int]
  absTypeTagIsnotClassTag[String]
  absTypeTagIsnotClassTag[Array[Int]]
}