summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-tagless-a/Impls_Macros_1.scala
blob: 45e39d7d1c6054b1b03a8d4327732aa598468fb6 (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[T]

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