blob: 7a43ee58beddb860ec409bc773e4129ec0a3f963 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.makro.{Context => Ctx}
object Macros {
def foo(s: String) = macro Impls.foo
object Impls {
def foo(c: Ctx)(s: c.Expr[String]) = c.reify {
println("hello " + s.splice)
}
}
}
|