diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-02-25 15:16:24 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-02-25 15:16:24 +0000 |
commit | c6facf49bb442213fc9919428dad7716662e950c (patch) | |
tree | 561cd70c2796b4e601b7168e1332ba0510b02cfd | |
parent | 53f4fbaa7939abf6ccc8745f49ea66b70654bb9c (diff) | |
download | scala-c6facf49bb442213fc9919428dad7716662e950c.tar.gz scala-c6facf49bb442213fc9919428dad7716662e950c.tar.bz2 scala-c6facf49bb442213fc9919428dad7716662e950c.zip |
Fixes #3088. No review.
-rw-r--r-- | src/library/scala/collection/mutable/ListBuffer.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/scala/collection/mutable/ListBuffer.scala b/src/library/scala/collection/mutable/ListBuffer.scala index 43892e3e87..92a69d671f 100644 --- a/src/library/scala/collection/mutable/ListBuffer.scala +++ b/src/library/scala/collection/mutable/ListBuffer.scala @@ -105,6 +105,8 @@ final class ListBuffer[A] this } + override def ++=(elems: Traversable[A]): this.type = if (elems ne this) super.++=(elems) else super.++=(elems.toList) + /** Clears the buffer contents. */ def clear() { |