blob: 9104d8df0b2e5bee469fe99c2d07bd5079998441 (
plain) (
tree)
|
|
scala> {
import scala.reflect.runtime.universe._
val x = "2"
val tt = implicitly[TypeTag[x.type]]
println(tt)
}
<console>:15: free term: Ident(TermName("x")) defined by res0 in <console>:14:14
val tt = implicitly[TypeTag[x.type]]
^
TypeTag[x.type]
scala> :quit
|