title: IntelliJ Scala - Calling a Function's .curried
body: <p>I'm trying to curry a method like so in a Scala Worksheet in IntelliJ IDEA. </p>
  
  <p><code>def add1(x: Int, y: Int) = x + y</code></p>
  
  <p>So I tell Scala to convert my method to a funtion using _</p>
  
  <p><code>val add1func = add1 _</code> gives <code>(Int, Int) =&gt; Int = &lt;function2&gt;</code></p>
  
  <p>All good. Now I try to call .curried;</p>
  
  <p><code>val add1curry = add1func.curried</code> </p>
  
  <p>I get a exception;</p>
  
  <pre><code>java.lang.NoSuchMethodError: scala.Function2.curried$mcIII$sp()Lscala/Function1;
      at #worksheet#.#worksheet#(test-worksheet.sc0.tmp:3)
  </code></pre>
  
  <p>Any ideas what is going on? This works in the Scala REPL.</p>