Skip to content

Scaladoc documents "implicitly added" methods which are shadowed #17599

Open
@Sporarum

Description

@Sporarum

Example, method == in Int:
https://scala-lang.org/api/3.x/scala/Int.html#

What seems to be happening:

In the case where:

  • type A defines a method f
  • type B defines a method f of same signature
  • there is an implicit conversion from A to B

Method f is documented twice in A, even though B's can never be called

Expectation

Only methods which are actually callable should be displayed

Or if we want to keep this information somewhere, there should be a section at the very end grouping all of these, like "Implicitly added, but shadowed by explicit members", potentially folded by default

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions