Skip to content

Commit fd8a658

Browse files
committed
Make Set#++ take an IterableOnce like Set#concat
This seems to have been an oversight.
1 parent 7a6c836 commit fd8a658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/collection/Set.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
201201
def + (elem1: A, elem2: A, elems: A*): C = fromSpecific(new View.Concat(new View.Appended(new View.Appended(toIterable, elem1), elem2), elems))
202202

203203
/** Alias for `concat` */
204-
@`inline` final def ++ (that: collection.Iterable[A]): C = concat(that)
204+
@`inline` final def ++ (that: collection.IterableOnce[A]): C = concat(that)
205205

206206
/** Computes the union between of set and another set.
207207
*

0 commit comments

Comments
 (0)