blob: c1bd4187a6c872194ec22543c3aa6c35a27d2056 (
plain) (
tree)
|
|
import scala.reflect.makro.{Context => Ctx}
object Macros {
def foo[T](s: String) = macro Impls.foo[T]
object Impls {
def foo[T: c.TypeTag](c: Ctx)(s: c.Expr[T]) = c.reify {
Array(s.splice)
}
}
}
|