Closed
Description
In scala/collection-strawman, this line gives the following compilation error:
def removeAll(keys: IterableOnce[K]): C = fromSpecificIterable(keys.iterator().foldLeft[CC[K, V]](coll)(_ - _))
^^^
value `-` is not a member of CC[K, V]
Though CC
is upper bounded by MapOps
(see here), which provides the -
operation. Note that the CC
upper bound is recursive.
This code compiles fine with Scala 2.12 and 2.13.