title: Scala match variable passing
body: <p>I am new to Scala, and was trying to understand match.</p>
  
  <p>When I try to run the following code, the javaw VM does not respond (keeps waiting for ever - trying this from eclipse)</p>
  
  <pre><code>case GenericProfile(user) =&gt; processGenericProfile(_)
  case _ =&gt; println("Invalid data found")
  </code></pre>
  
  <p>However, the following section works just fine:</p>
  
  <pre><code>case GenericProfile(user) =&gt; processGenericProfile(GenericProfile(user))
  case _ =&gt; println("Invalid data found")
  </code></pre>
  
  <p>I am trying to understand why the first scenario would fail to respond. I do not want to pass GenericProfile(user) - I would like to know how this can be simplified. Thnaks!!</p>