blob: bd9b3a2fb1afbe46371c190384901d44a2952269 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Type in expressions to have them evaluated.
Type :help for more information.
scala> import scala.reflect.runtime.universe._
import scala.reflect.runtime.universe._
scala> def foo[T: TypeTag] = reify{List[T]()}
foo: [T](implicit evidence$1: reflect.runtime.universe.TypeTag[T])reflect.runtime.universe.Expr[List[T]]
scala> println(foo)
Expr[List[Nothing]](Nil)
scala> :quit
|