blob: 6c5f124960e3fbf790d01495d50459b6524aaa27 (
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[AbsTypeTag[List[T]]]
println(tt)
}
<console>:9: free type: Ident(newTypeName("T")) defined by foo in <console>:7:16
val tt = implicitly[AbsTypeTag[List[T]]]
^
foo: [T]=> Unit
scala> foo[Int]
AbsTypeTag[List[T]]
scala>
scala>
|