blob: 04cf46d3a5e2775409db64fe3fa8620a7442ff41 (
plain) (
tree)
|
|
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.splice)
}
}
}
|