title: Adding map entries fails in program but works in interpreter
body: <p>Perhaps I'm missing something obvious but this straightforward App doesn't work:</p>
  
  <pre><code>object runnable extends App {
     Test.calculate
  }
  object Test {
    val c = Map[Int, Int]()
    def calculate {
      c + ( 1 -&gt; 2 )
    }
  ...
  </code></pre>
  
  <p>And set a break point in the debugger immediately following that line, the contents of the map are <code>Map()</code></p>
  
  <p>But if I do the equivalent in the repl:</p>
  
  <pre><code>val c = Map[Int,Int]()
  c: scala.collection.immutable.Map[Int,Int] = Map()
  c+(1-&gt;2)
  res2: scala.collection.immutable.Map[Int,Int] = Map(1 -&gt; 2)
  </code></pre>
  
  <p>I've even tried making the map mutable in the App code but it doesn't work.</p>
  
  <p>Am I missing something here?</p>
  
  <p>Thanks.</p>