title: Scala interpreter can't find my class?
body: <p>I'm trying to load a Scala file inside the interpreter:</p>
  
  <pre><code>trait MyOrdered {
    def &lt;(that: MyInt):Boolean = compare(that) &lt; 0
    def &gt;(that: MyInt):Boolean = compare(that) &gt; 0
    def &lt;=(that: MyInt):Boolean = compare(that) &lt; 0 || this == that
    def &gt;=(that: MyInt):Boolean = compare(that) &gt; 0 || this == that
    def compare(that: MyInt): Int
  }
  
  class MyInt(val value: Int) extends MyOrdered {
    def compare(that: MyInt) =
      if (this.value &lt; that.value) -1 
      else if (this.value == that.value) 0
      else 1
  }
  
  
  object App extends Application{
    val a = new MyInt(2)
    val b = new MyInt(4)
    println(a &lt; b)
    println(a &gt; b)
  }
  </code></pre>
  
  <p>But I receive a silly error: </p>
  
  <pre><code>Loading traits.scala...
  &lt;console&gt;:8: error: not found: type MyInt
           def &lt;(that: MyInt):Boolean = compare(that) &lt; 0
                       ^
  &lt;console&gt;:12: error: not found: type MyInt
           def compare(that: MyInt): Int
  </code></pre>
  
  <p>How can I make the interpreter know the <code>MyInt</code> class, which is defined down the road?</p>