Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong ScalaDoc for TypeApi members and decls regarding sorted #11896

Closed
OndrejSpanel opened this issue Feb 24, 2020 · 1 comment
Closed

Wrong ScalaDoc for TypeApi members and decls regarding sorted #11896

OndrejSpanel opened this issue Feb 24, 2020 · 1 comment

Comments

@OndrejSpanel
Copy link
Member

Scala 2.12.10 and 2.13.1 for both Types.TypeApi decls and members mentions declarations.sorted.

See also https://www.scala-lang.org/api/current/scala-reflect/scala/reflect/api/Types$TypeApi.html#decls:Types.this.MemberScope

    /** A `Scope` containing directly declared members of this type.
     *  Unlike `members` this method doesn't returns inherited members.
     *
     *  Members in the returned scope might appear in arbitrary order.
     *  Use `declarations.sorted` to get an ordered list of members.
     */
    def decls: MemberScope
    /** A `Scope` containing all members of this type (directly declared or inherited).
     *  Unlike `declarations` this method also returns inherited members.
     *
     *  Members in the returned scope might appear in arbitrary order.
     *  Use `declarations.sorted` to get an ordered list of members.
     */
    def members: MemberScope

It should be Use decls.sorted and Use members.sorted instead.

@SethTisue
Copy link
Member

fixed by scala/scala#9563

@SethTisue SethTisue modified the milestones: Backlog, 2.13.6 Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants