blob: 8a0f18c01b4091377947e8e556a16889733c11cf (
plain) (
tree)
|
|
import scala.reflect.macros.{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]
}
|