Aladdin - Scala Bugtracking
[#371] project: compiler priority: low category: missing feature
submitter assigned to status date submitted
Stephane Burak fixed 2004-10-29 11:29:40.0
subject Strange error message
code
object test with Application {
  val y+ = 3;
}
what happened
test.scala:2: x$0 is already defined as value x$0 in object test
  val y+ = 3;
         ^
one error found
what expected Better error message from compiler!
[back to overview]
Changes of this bug report
Stephane  edited on  2004-10-29 11:30:05.0
Martin  edited on  2004-11-18 15:17:26.0
This seems to be caused by the translation into patterns. The parser produces the following tree for this program:
object test extends scala.AnyRef() with scala.ScalaObject() 
                                   with Application() {  
  val x$0 @ [y, (x$0 | [])] = 3
};
Burak  edited on  2005-06-10 18:38:40.0