title: Cannot resolve symbol - Scala
body: <p>This code does not compile.</p>
  
  <pre><code>Actions anything = new Actions(getDriver)
  </code></pre>
  
  <p>I create the driver this way:</p>
  
  <pre><code>private var driverInstance: Option[_ &lt;: RemoteWebDriver] = None
  
  private def getDriver: RemoteWebDriver = driverInstance.getOrElse(reportDriverException)
  </code></pre>
  
  <p>The problem I get is that "anything" is underlined and it says </p>
  
  <blockquote>
    <p>Cannot resolve symbol anything</p>
  </blockquote>
  
  <p>but when i change </p>
  
  <pre><code>Actions anything = new Actions(getDriver)
  </code></pre>
  
  <p>to</p>
  
  <pre><code>val anything = new Actions(getDriver)
  </code></pre>
  
  <p>it's seemingly fine - except that it's a val so obviously I can't do anything with it.</p>
  
  <p>As it may be a problem with environment, I'm using Scala in IntelliJ IDEA 14 with Selenium 2.44</p>