title: scala: implicit conversion does not work
body: <p>I have a problem with <code>implicit</code> function, imported from a package.              </p>
  
  <p>I have a class that uses Regex to find something in a text. I would like to use it as:</p>
  
  <pre><code>val pattern = "some pattern here".r                                          
  pattern findSomethingIn some_text                                            
  </code></pre>
  
  <p>To do so, I define an <code>implicit</code> finction to convert <code>pattern</code> to a wrapper <code>Wrapper</code> that contains <code>findSomethingIn</code> function</p>
  
  <pre><code>package mypackage {                                                          
  
    class Wrapper ( val pattern: Regex ) {                                     
      def findSomethingIn( text: String ): Something = ...                     
    }                                                                          
  
    object Wrapper {                                                           
      implicit def regex2Something( pat: Regex ): Wrapper = new Wrapper( pat ) 
    }                                                                          
  
  }                                                                            
  </code></pre>
  
  <p>if I use it as                                                                   </p>
  
  <pre><code>import mypackage._                                                           
  
  Wrapper.regex2Something( pattern ) findSomethingIn some_text                 
  </code></pre>
  
  <p>it works. whereas if i use                                                       </p>
  
  <pre><code>pattern findSomethingIn some_text // implicit should work here??             
  </code></pre>
  
  <p>I get                                                                            </p>
  
  <pre><code>value findPriceIn is not a member of scala.util.amtching.Regex               
  </code></pre>
  
  <p>so the implicit conversion does not work here... What is the problem?            </p>