blob: 04366353eb66ae5b626a94a9a32c156f25435099 (
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[List[T]]
object Impls {
def foo[T](c: Ctx)(s: c.Expr[T]) = c.reify {
List(s.splice)
}
}
}
|