blob: 0d11c24ad1ee09c83fb424d52289057a3af95508 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.macros.whitebox._
import scala.language.experimental.macros
object Macros {
def impl(c: Context)(x: c.Tree, y: c.Tree) = {
import c.universe._
q"println($x)"
}
def foo(x: Int, y: Int): Unit = macro impl
}
|