--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
From your error it looks like you are trying to run the script from the scala REPL instead of running it directly, i.e. you are doing this:
$ scala
Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_17).
Type in expressions to have them evaluated.
Type :help for more information.
scala> scala hello.scala
<console>:1: error: ';' expected but '.' found.
scala hello.scala
^
instead of directly this, directly in your console:
$ scala hello.scala