val is immutable



examples/ValIsImmutable.scala
object ValIsImmutable {
    def main(args:Array[String]) {
        val counter:Int = 0
        println(counter)
        counter = 1
        println(counter)
    }
}

ValIsImmutable.scala:5: error: reassignment to val
        counter = 1
                ^
one error found