blob: 26d4a45fee31cd27bc74a9b17cdc52b84af417d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.reflect.macros.Context
object Impls {
def foo[T: c.AbsTypeTag](c: Context): c.Expr[List[T]] = c.universe.reify {
println("openImplicits are: " + c.literal(c.openImplicits.toString).splice)
println("enclosingImplicits are: " + c.literal(c.enclosingImplicits.toString).splice)
println("typetag is: " + c.literal(c.tag[T].toString).splice)
null
}
}
|