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