title: Method in infix notation without defined object
body: <p>I have the following Scala Object:</p>
  
  <pre><code>object myCls {
    def main(args: Array[String]) = {
      print getString()
    }
  
    def getString(): String = {
      return "myString"
    }
  }
  </code></pre>
  
  <p>On the line:</p>
  
  <pre><code>print getString() 
  </code></pre>
  
  <p>I get the issue:</p>
  
  <pre><code>Cannot resolve symbol getString
  </code></pre>
  
  <p>What's wrong with this method?</p>