Skip to content

ScalaDoc shows wrong type for this.type #16024

Closed
@odersky

Description

@odersky

Compiler version

3.2.1 RC-1

Minimized example

In Tuple.scala:

  inline def map[F[_]](f: [t] => t => F[t]): Map[this.type, F] =
    runtime.Tuples.map(this, f).asInstanceOf[Map[this.type, F]]

Output

Scaladoc output:

def map[F[_]](f: [t] => (x$1: t) => F[t]): Map[Tuple, F]

Expectation

this.type should be rendered as this.type, not Tuple. The two have very different meanings. I am not sure whether other singleton types are rendered correctly, we should check that as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions