summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-tagless-a/Impls_Macros_1.scala
blob: 27acaa16269b54e95493d92500d5239791c5c090 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.macros.{BlackboxContext => Ctx}

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

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