Skip to content

Commit 2cd0f6b

Browse files
authored
[nomerge] Merge pull request scala/scala#9566 from mario-galic/patch-1
Replace 0.asInstanceOf[B] with null.asInstanceOf[B]
2 parents 9870f56 + c3b8e58 commit 2cd0f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/TraversableOnce.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ trait TraversableOnce[+A] extends Any with GenTraversableOnce[A] {
224224
//avoid the LazyRef as we don't have an @eager object
225225
class reducer extends AbstractFunction1[A, Unit] {
226226
var first = true
227-
var acc: B = 0.asInstanceOf[B]
227+
var acc: B = null.asInstanceOf[B]
228228

229229
override def apply(x: A): Unit =
230230
if (first) {

0 commit comments

Comments
 (0)