blob: e43264f52f7ef811e7a8243f1afdcd3b034a0455 (
plain) (
tree)
|
|
import scala.reflect.macros.{Context => Ctx}
object Impls {
def impl(c: Ctx)(x: c.Expr[Int]) = x
}
trait Foo {
def foo(x: Int): Int
}
object Macros extends Foo {
def foo(x: Int) = macro Impls.impl
}
|