@@ -177,10 +177,6 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
177177 @ deprecated(" Use &- with an explicit collection argument instead of - with varargs" , " 2.13.0" )
178178 def - (elem1 : A , elem2 : A , elems : A * ): C = diff(elems.toSet + elem1 + elem2)
179179
180- // The implicit dummy parameter is necessary to avoid erased signature clashes
181- // between this `concat` and the polymorphic one defined in `IterableOps`.
182- // Note that these clashes only happen in Dotty because it adds mixin
183- // forwarders before erasure unlike Scala 2.
184180 /** Creates a new $coll by adding all elements contained in another collection to this $coll, omitting duplicates.
185181 *
186182 * This method takes a collection of elements and adds all elements, omitting duplicates, into $coll.
@@ -194,7 +190,7 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
194190 * @param that the collection containing the elements to add.
195191 * @return a new $coll with the given elements added, omitting duplicates.
196192 */
197- def concat (that : collection.IterableOnce [A ])( implicit dummy : DummyImplicit ) : C = fromSpecific(that match {
193+ def concat (that : collection.IterableOnce [A ]): C = fromSpecific(that match {
198194 case that : collection.Iterable [A ] => new View .Concat (toIterable, that)
199195 case _ => iterator.concat(that.iterator)
200196 })
@@ -206,7 +202,7 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
206202 def + (elem1 : A , elem2 : A , elems : A * ): C = fromSpecific(new View .Concat (new View .Appended (new View .Appended (toIterable, elem1), elem2), elems))
207203
208204 /** Alias for `concat` */
209- @ `inline` final def ++ (that : collection.IterableOnce [A ])( implicit dummy : DummyImplicit ) : C = concat(that)
205+ @ `inline` final def ++ (that : collection.IterableOnce [A ]): C = concat(that)
210206
211207 /** Computes the union between of set and another set.
212208 *
0 commit comments