Aladdin - Scala Bugtracking
[#466] project: nsc priority: low category: bug
submitter assigned to status date submitted
Iulian _ fixed 2005-10-26 17:31:29.0
subject array updates get type BoxedUnit without boxing anything
code
object Foo {
  val a: Array[Int] = Array(1, 2);

  def test = synchronized {
    if (a.length > 0)
      a(0) = 0;
  }
}
what happened
The type of 'a(0) = 0' will be BoxedUnit, but that is not correct, it's just unit. It should either be boxed, or\
 set to scala.Unit. I think this bug is somehow connected to bug #465.
what expected
[back to overview]
Changes of this bug report
Iulian  edited on  2005-11-04 10:36:09.0