aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/interop_typetags_arenot_classtags.scala
blob: f5bd75fb3362fcc0b8f7ec45848a47a4eac14449 (plain) (tree)
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 typeTagIsnotClassTag[T: TypeTag] = {
    println(classTag[T])
  }

  typeTagIsnotClassTag[Int]
  typeTagIsnotClassTag[String]
  typeTagIsnotClassTag[Array[Int]]
}