blob: 89c534764729bb7611b73f03287fb12c578a6433 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.makro.{Context => Ctx}
object Impls {
def foo(c: Ctx)(y: c.Expr[Int], x: c.Expr[Int]) = ???
}
object Macros {
def foo(x: Int, y: Int) = macro Impls.foo
}
|