scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

Scaladoc search includes undocumented members #12670

Open som-snytt opened 2 years ago

som-snytt commented 2 years ago

Reproduction steps

Scala version: 2.13

Search occCounts in standard lib docs yields results that are not shown in the target page. It is protected[collection].

https://www.scala-lang.org/api/current/scala/collection/Seq.html?search=occCounts

https://www.scala-lang.org/api/current/scala/collection/AbstractIndexedSeqView.html#occCounts[B](sq:scala.collection.Seq[B]):scala.collection.mutable.Map[B,Int]

Problem

Search should only show results visible in the docs.

Related issue for this case is https://github.com/scala/bug/issues/12083

SethTisue commented 2 years ago

ha, good catch