-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scala3doc: extension methods are not grouped properly #10329
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
Comments
The grouping should be based on the position of the leading parameter section. The leading parameter is the first parameter, except for right-associative methods, where it is the second parameter. (There's a parameter swap for right-associative operators when we go from collective extensions to internal extension methods). See method The compiler also has code that depends on the grouping. See |
@abgruszecki Prevoiously we were groupping by position, but I see that currently we are groupping by DRI of extended symbol (which changed recently) which is not quite good, because in |
Reopening, the issues is still there. |
Correction: there's no bug on Scala3doc side, it merely duplicates the original source structure (which has a separate |
See https://scala3doc.virtuslab.com/pr-master/scala3/api/scala/opaques/array-ops/index.html.
Grouping extensions was based on positions. Since we implemented it, the implementation of extension methods was changed, so perhaps that is where the problem is?
The text was updated successfully, but these errors were encountered: