Skip to content

Commit 1658a75

Browse files
committed
Quick-fix pattern-matching inside mutable.BufferLike.
1 parent b704d81 commit 1658a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/collection/mutable/BufferLike.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]]
201201
case Remove(NoLo, x) => this -= x
202202

203203
case Reset() => clear()
204-
case s: Script[_] => s.iterator foreach <<
204+
case s: Script[A] => s.iterator foreach <<
205205
case _ => throw new UnsupportedOperationException("message " + cmd + " not understood")
206206
}
207207

0 commit comments

Comments
 (0)