Closed scabug closed 13 years ago
=== What steps will reproduce the problem (please be specific and use wikiformatting)? === in the interactive shell type this
scala> val a = new scala.collection.mutable.ArraySeq[Int](10) a: scala.collection.mutable.ArraySeq[Int] = ArraySeq(null, null, null, null, null, null, null, null, null, null) scala> a(0) == null <console>:7: warning: comparing values of types Int and Null using `==' will always yield false a(0) == null ^ res3: Boolean = true scala>
=== What is the expected behavior? ===
I would expect a specialized ArraySeq that initializes with 0 and does not use boxed Ints
val a = new scala.collection.mutable.ArraySeq[Int](10) a: scala.collection.mutable.ArraySeq[Int] = ArraySeq(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
=== What versions of the following are you using? ===
Imported From: https://issues.scala-lang.org/browse/SI-4274?orig=1 Reporter: Krux (krux)
@paulp said:
=== What steps will reproduce the problem (please be specific and use wikiformatting)? === in the interactive shell type this
=== What is the expected behavior? ===
I would expect a specialized ArraySeq that initializes with 0 and does not use boxed Ints
=== What versions of the following are you using? ===