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

Open
OndrejSpanel opened this issue Feb 24, 2020 · 0 comments
Open

Wrong ScalaDoc for TypeApi members and decls regarding sorted #11896

OndrejSpanel opened this issue Feb 24, 2020 · 0 comments
Labels

Comments

@OndrejSpanel
Copy link

@OndrejSpanel OndrejSpanel commented Feb 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.