summaryrefslogtreecommitdiff
path: root/test/files/neg/interop_abstypetags_arenot_classtags.scala
blob: de1f8657b6301497cd2fd15bfab57afa200bdbb7 (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 weakTypeTagIsnotClassTag[T: WeakTypeTag] = {
    println(classTag[T])
  }

  weakTypeTagIsnotClassTag[Int]
  weakTypeTagIsnotClassTag[String]
  weakTypeTagIsnotClassTag[Array[Int]]
}