title: Scala error defining object
body: <p>I've been trying to get a Scala hello world example running on Eclipse using the Scala plugin. Writing the following: </p>
  
  <pre><code>package scala_test
  
  object Test {
    def main(args: Array[String]) {
      println("Hello, World") 
    }  
  }
  </code></pre>
  
  <p>produces the following error:</p>
  
  <pre><code>&lt;console&gt;:1: error: eof expected but '}' found.
         }
         ^
  </code></pre>
  
  <p>I've tried this on both a Windows machine and a Mac (both were using Eclipse 3.7). I've tried commenting out the function definition (just leaving an empty body for the Test object) and the error still occurs. Any ideas as to what might cause this?</p>