StringOps.concat
and ++
have inconsistent signatures
#13036
Labels
Milestone
StringOps.concat
and ++
have inconsistent signatures
#13036
Scala 2.13.14
Problem
concat
accepts[U >: Char] IterableOnce[U]
, but++
onlyIterable[U]
.I'm sorry if it is as intended, by there is no comment as to why, docs explicitly mention it as an alias, which somewhat implies equivalent signatures, and it seems to go against the Scala 3 principles.
BTW, there is also
Map.+
without aMap.add
, but that's a minor inconsistency, certainly not a bug.The text was updated successfully, but these errors were encountered: