scala / bug

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

Scaladoc permits inheritDoc with different parameter names #12897

Open som-snytt opened 7 months ago

som-snytt commented 7 months ago

Reproduction steps

Scala version: 2.13.12

getOrElseUpdate is missing defaultValue parameter

compare MapOps

The specific doc problem will be fixed by amending the aberrant signature in MapOps.

Problem

Scaladoc should either complain when inheritDoc but the parameter names do not align, or just fix the doc automagically.

Scala itself doesn't care about parameter names in overrides.