blob: b48f9d5f9853f2b88403a6528f6d1c37310a7976 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.runtime.universe._
import scala.reflect.macros.{Context => Ctx}
object Impls {
def foo[T: c.AbsTypeTag, U: c.AbsTypeTag, V](c: Ctx)(implicit V: c.AbsTypeTag[V]): c.Expr[Unit] = {
println(implicitly[c.AbsTypeTag[T]])
println(implicitly[c.AbsTypeTag[U]])
println(V)
c.literalUnit
}
}
|