blob: d6521dfbcb6466a8a791bdf5536d137b1c616119 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.language.experimental.macros
import scala.reflect.macros.BlackboxContext
object Macros {
def impl(c: BlackboxContext)(arg: c.Tree) = {
import c.universe._
q"""println($arg)"""
}
def foo(arg: String): Unit = macro impl
}
|