Closed noresttherein closed 1 year ago
@scala/collections
Duplicates https://github.com/scala/bug/issues/11697 and https://github.com/scala/scala-library-next/issues/128
https://github.com/scala/scala/pull/10106
Possibly this is the Scaladoc bug where it drops text in the presence of macros.
It's visible in Scala 3:
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.