Skip to content

HashMap toString doc is Any not Iterable #23631

@som-snytt

Description

@som-snytt

Questions are not bug reports

This may be a queston?

Reproduction steps

Scala version: 2 & 3

scala> m.toString
val res2: String = HashMap(5 -> 6, 1 -> 2, 9 -> 10, 7 -> 8, 3 -> 4)

Problem

HashMap#toString does not reflect the doc at Iterable.

Doc for Map#toString shows doc for Any, not for Iterable. Same for all collection types extending Function, which has an override for toString but no doc defined.

Cf View#toString

Maybe it's just a quirk of linearization, but it should be fixed either in the doc tool or in the source doc.

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