Scala not found: value macro
<p>This line:</p>

<pre><code>"foo".assertNonFatal( _ equals "foo", "error message");
</code></pre>

<p>This error:</p>

<pre><code>Error:(120, 47) not found: value assertion
</code></pre>

<p>This hook:</p>

<pre><code>final implicit class ImplicitAssert[MyType](val me: MyType) {

  final def assertNonFatal(assertion: (MyType) =&gt; Boolean, message: String)
    : MyType = macro ImplicitAssertMacros.assertNonFatal[MyType]
}
</code></pre>

<p>This macro:</p>

<pre><code>object ImplicitAssertMacros {
  def assertNonFatal[MyType](c: scala.reflect.macros.blackbox.Context)
      (assertion: c.Tree, message: c.Tree): c.Tree = {
    import c.universe._
    val me = q"${c.prefix}.me" // "me" from ImplicitAssert class.
    val numLines = q"Int.MaxValue"
    val useStdOut = q"false"
    val assertionTrue = q"assertion($me)"
    val isFatal = q"false"
    val toReturn = q"""
       _root_.info.collaboration_station.debug.internal.Printer.traceInternalAssert($message, $numLines, $useStdOut, $assertionTrue, $isFatal);
       $me;
    """
    toReturn
  }
}
</code></pre>

<p>^ I can't figure out what the cause of this compiler error is or how to fix it. </p>

<p>Note that it only happens when I compile the source file, not the macros.</p>