title: Intellij Scala not recognizing operators
body: <p>I'm using the <a href="http://www.playframework.com/" rel="nofollow">Play Framework</a> with Scala, developing using IntelliJ IDEA Community 13. I've got Play running from a terminal; that's all working. However, IntelliJ isn't recognizing some of the operators used on strings.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>package controllers
  
  import play.api.mvc._
  import play.api.libs.json._
  
  object Application extends Controller {
  
    def index = Action {
      Redirect(routes.Application.tasks)
    }
  
    def tasks = TODO
  
    def newTask = TODO
  
    def deleteTask(id: Long) = TODO
  
    def sayHello = Action(parse.json) { request =&gt;
      (request.body \ "name").asOpt[String].map { name =&gt;
        Ok(Json.toJson(
          Map("status" -&gt; "OK", "message" -&gt; ("Hello " + name)) // this line
        ))
      }.getOrElse {
        BadRequest("Missing parameter [name]")
      }
    }
  
  }
  </code></pre>
  
  <p>It compiles and runs fine in Play. However, IntelliJ marks the <code>+</code> and <code>-&gt;</code> operators as invalid, giving me a <strong>"Cannot resolve symbol <code>+</code>"</strong> when I hover.</p>
  
  <p>I know this is more of an inconvenience than anything else, but it's really bothering me. <strong>What do I have to import or configure in order to get IntelliJ to recognize those operators?</strong></p>