Aladdin - Scala Bugtracking
[#465] project: nsc priority: medium category: bug
submitter assigned to status date submitted
Iulian _ fixed 2005-10-26 16:14:03.0
subject erasure forgets to box units
code
class Foo {
  def method = {
    val array = new Array[Int](10);
    val unit: Unit =
      array(0) = 0;
  }
}
what happened
value 'unit' will get the type BoxedUnit after erasure, but the array update is not boxed, so no boxed unit valu\
e will be created.
what expected a box operation around the array update
[back to overview]
Changes of this bug report
Iulian  edited on  2005-11-04 10:36:28.0