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

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