blob: f9a5d7b578254582544a782023bf8e485bffa514 (
plain) (
tree)
|
|
Type in expressions to have them evaluated.
Type :help for more information.
scala> {
import scala.reflect.runtime.universe._
val x = "2"
val tt = implicitly[TypeTag[x.type]]
println(tt)
}
<console>:14: free term: Ident(TermName("x")) defined by res0 in <console>:13:14
val tt = implicitly[TypeTag[x.type]]
^
TypeTag[x.type]
scala> :quit
|