title: Compiler cannot find an implicit defined in a companion object
body: <p>I have a file that defines a trait and its companion object.</p>
  
  <pre><code>trait SomeTrait {
  }
  
  object SomeTrait extends SomeConfig {
   implicit def intToString(v: Int): String = v.toString
  }
  </code></pre>
  
  <p>In another file, I have a case class that extends a trait along with the one above.</p>
  
  <pre><code>case class SomeCaseClass extends AnotherTrait with SomeTrait {
  
    protected def someLoginc(): Unit = {
     // The compiler cannot find the implicit def intToString 
    }
  }
  </code></pre>
  
  <p>How come the compiler cannot find the implicit defined in the companion object?</p>
  
  <p>As per my understanding, the implicits defined in a companion object are automatically brought into the scope.</p>