summaryrefslogtreecommitdiff
path: root/test/pending/run/macro-expand-implicit-macro-defeats-type-inference/Impls_1.scala
blob: 0dac664d38f1098ddbd86d87297a69c167edd3d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.macros.Context

object Impls {
  def foo[T: c.TypeTag](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
  }
}