Given the following code:
case class JetDim(dimension: Int) {
require(dimension > 0)
}
object JetDim {
def build(dimension: Int): Int = macro JetDimMacro.apply
}
and the macro that it calls:
def apply(dimension: Int): Int = macro applyImpl
def applyImpl(c: Context)(dimension: c.Expr[Int]): c.Expr[Int] = ...
I'm getting this compile-time error:
[error] too few argument lists for macro invocation
[error] def build(dimension: Int): Int = macro JetDimMacro.apply
Why?