blob: 32524233759c1c61a7fb1f8ab0ba89ba465e0da9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.runtime.universe._
object Test extends App {
def fooTypeTagHK[C[_]: TypeTag, T: TypeTag] = {
println(implicitly[TypeTag[C[T]]])
println(implicitly[TypeTag[List[C[T]]]])
}
fooTypeTagHK[List, Int]
}
|