Closed som-snytt closed 2 years ago
Actually, case class equality is terrible, as it says the Collection
is only equal to wrapped thing. That is poor semantics.
We should probably re-open this one as the fix in 2.13.11
was only implemented for IterableWrapper
and still fails for other wrapper like JIterableWrapper
.
@RustedBones feel free to open a new ticket. I don't remember the details.
Reproduction steps
Problem
It would be nice if it behaved the same. A wrapper should delegate if possible.
Arguably, there is no contract for structural equality:
Therefore, there should be no expectation here.
Usage of correct API restores expectations:
Reported at https://github.com/scala/scala/pull/10104#issuecomment-1297233492