title: Scala can't recognize which method to call
body: <p>I want to run a bit of Java in Scala console. Here's what I get:</p>
  
  <pre><code>scala&gt; String.format("hello %d",3);
  &lt;console&gt;:8: error: overloaded method value format with alternatives:
    (java.util.Locale,java.lang.String,&lt;repeated...&gt;[java.lang.Object])java.lang.String &lt;and&gt;
    (java.lang.String,&lt;repeated...&gt;[java.lang.Object])java.lang.String
   cannot be applied to (java.lang.String, Int)
                String.format("hello %d",3);
  </code></pre>
  
  <p>Why Scala can't recognize which method to call, if argument set is different, and the ones I provide are quite unambigous?</p>
  
  <p>What is strange, the same message appears also when I try to call function with arguments which don't match to any of both argument sets, e.g. <code>String.format()</code></p>
  
  <p>I was using scala 2.9.1</p>