blob: c7cf0b06c40bb7ea2ad4b99ba288a3f641218aa1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.macros.{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
}
|