blob: 2ff12091a1da437281456c2b382f7a75bed1890f (
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.TypeTag](c: Ctx)(s: c.Expr[T]) = c.reify {
List(s.eval)
}
}
}
|