@@ -177,10 +177,6 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
177
177
@ deprecated(" Use &- with an explicit collection argument instead of - with varargs" , " 2.13.0" )
178
178
def - (elem1 : A , elem2 : A , elems : A * ): C = diff(elems.toSet + elem1 + elem2)
179
179
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.
184
180
/** Creates a new $coll by adding all elements contained in another collection to this $coll, omitting duplicates.
185
181
*
186
182
* 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]]
194
190
* @param that the collection containing the elements to add.
195
191
* @return a new $coll with the given elements added, omitting duplicates.
196
192
*/
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 {
198
194
case that : collection.Iterable [A ] => new View .Concat (toIterable, that)
199
195
case _ => iterator.concat(that.iterator)
200
196
})
@@ -206,7 +202,7 @@ trait SetOps[A, +CC[_], +C <: SetOps[A, CC, C]]
206
202
def + (elem1 : A , elem2 : A , elems : A * ): C = fromSpecific(new View .Concat (new View .Appended (new View .Appended (toIterable, elem1), elem2), elems))
207
203
208
204
/** 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)
210
206
211
207
/** Computes the union between of set and another set.
212
208
*
0 commit comments