title: Importing classes into Scala worksheet
body: <p>In my scala worksheet test.sc I define :</p>
  
  <pre><code>import com.tradedata.VolatilityInstance
  </code></pre>
  
  <p>test.sc exists at src/main/scala</p>
  
  <p>In location src/main/scala I define : </p>
  
  <pre><code>package com.tradedata
  
  class VolatilityInstance(intervalLength: Int, volatility: Double, beginDate: String, endDate: String) {
  
    override def toString: String = {
      this.beginDate
    }
  
  }
  </code></pre>
  
  <p>The filename for this class is <code>VolatilityData.scala</code></p>
  
  <p><code>VolatilityData.scala</code> exists at level src/main/scala/com/tradedata</p>
  
  <p>When I attempt to run the worksheet I receive error :</p>
  
  <pre><code>Error:(1, 16) object VolatilityInstance is not a member of package com.tradedata
  import com.tradedata.VolatilityInstance
  </code></pre>
  
  <p>If i define a new Scala object :</p>
  
  <pre><code>import com.tradedata.VolatilityInstance
  
  object Tester extends App {
  
  }
  </code></pre>
  
  <p>Tester object runs without issue.</p>
  
  <p>I've tried re-building the project, invalidating the caches and restarting IntelliJ but cannot fix.</p>
  
  <p>Is this a bug with the Scala worksheet ? How to import other classes into the Scala worksheet ?</p>