Closed odersky closed 1 year ago
3.2.1 RC-1
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]]
Scaladoc output:
def map[F[_]](f: [t] => (x$1: t) => F[t]): Map[Tuple, F]
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.
this.type
Tuple
This rings a bell https://github.com/lampepfl/dotty/issues/15426 which is deemed fixed in June. Nightly docs shows that was fixed but not this report.
Compiler version
3.2.1 RC-1
Minimized example
In Tuple.scala:
Output
Scaladoc output:
def map[F[_]](f: [t] => (x$1: t) => F[t]): Map[Tuple, F]
Expectation
this.type
should be rendered asthis.type
, notTuple
. The two have very different meanings. I am not sure whether other singleton types are rendered correctly, we should check that as well.