blob: 1cedc43f74cdd02d6dda36eba4453c2dc97aa6c5 (
plain) (
tree)
|
|
Type in expressions to have them evaluated.
Type :help for more information.
scala>
scala> def foo[T]{
import scala.reflect.runtime.universe._
val tt = implicitly[TypeTag[List[T]]]
println(tt)
}
<console>:9: free type: Ident(newTypeName("T")) defined by foo in <console>:7:16
val tt = implicitly[TypeTag[List[T]]]
^
foo: [T]=> Unit
scala> foo[Int]
TypeTag[List[T]]
scala>
scala>
|