Using TypeTag
I've been able to retrieve the type information about my polymorphic type.
scala> paramInfo(List(1,2)).tpe
res18: reflect.runtime.universe.Type = List[Int]
Now I want to retrieve the Int.type
, but apparently I'm unable to do so.
scala> paramInfo(List(1,2)).tpe.typeParams
res19: List[reflect.runtime.universe.Symbol] = List()
Is what I want to do possible, and if it is, how can I do that?