LinearSeqOps.lengthCompare
calls isEmpty
, which calls lengthCompare
, hence StackOverflowException
#12805
Labels
Reproduction steps
Scala version: 2.13.11
Problem
Now, a 'fix' for this could be just as well mentioning in the docs that
isEmpty
must be overridden, or similar, but the current situation is not ideal. Also, perhaps both should tryknownSize
first? The current implementation is a bit too specific to ourimmutable.List
, while an immutable list implementation of a known size (nomen omen) is not unheard of.The text was updated successfully, but these errors were encountered: