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