blob: 86407138463ec51ac545f5e7998a3b0e3c8198c1 (
plain) (
tree)
|
|
import scala.reflect.makro.{Context => Ctx}
object Impls {
def foo[T](c: Ctx)(x: c.Expr[T]) =
throw new Error("an implementation is missing")
}
object Macros {
def foo[T](x: T) = macro Impls.foo[T]
}
|