diff options
-rw-r--r-- | src/library/scala/collection/SetLike.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/SetLike.scala b/src/library/scala/collection/SetLike.scala index 2a208e0e3f..395e253430 100644 --- a/src/library/scala/collection/SetLike.scala +++ b/src/library/scala/collection/SetLike.scala @@ -125,7 +125,7 @@ self => * @param elems the collection containing the added elements. * @return a new $coll with the given elements added. */ - def ++ (elems: GenTraversableOnce[A]): This = newBuilder ++= seq ++= elems.seq result + def ++ (elems: GenTraversableOnce[A]): This = (repr /: elems.seq)(_ + _) @bridge def ++ (elems: TraversableOnce[A]): This = ++ (elems: GenTraversableOnce[A]) |