summaryrefslogtreecommitdiff
path: root/test/pending/run/macro-reify-tagful-b/Macros_1.scala
blob: 38b839330bfa6579eecad5fded37680ea9e0beea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.makro.{Context => Ctx}

object Macros {
  def foo[T](s: T) = macro Impls.foo[List[T]]

  object Impls {
    def foo[T: c.TypeTag](c: Ctx)(s: c.Expr[T]) = c.reify {
      List(s.eval)
    }
  }
}