blob: faac3e3a3197bab05639908fb85c66b5a5947d31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.macros.blackbox.Context
object Macros {
def foo[T](s: T) = macro Impls.foo[T]
object Impls {
def foo[T](c: Context)(s: c.Expr[T]) = c.universe.reify {
List[T](s.splice)
}
}
}
|