Skip to content

Scaladoc incorrectly creates method signatures from extensions #14811

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

Closed
rochala opened this issue Mar 30, 2022 · 2 comments · Fixed by #15021
Closed

Scaladoc incorrectly creates method signatures from extensions #14811

rochala opened this issue Mar 30, 2022 · 2 comments · Fixed by #15021

Comments

@rochala
Copy link
Contributor

rochala commented Mar 30, 2022

Compiler version

3.1.2-RC2

Minimized example

Generated documentation for methods from extensions have signatures without parameters.

class A

extension (a: A) def fun(x: Int) = x + 1

Output

image

Expectation

Output should show proper signature for method fun. In this example it should be: def fun(x: Int): Int

@rochala rochala added the stat:needs triage Every issue needs to have an "area" and "itype" label label Mar 30, 2022
@Kordyjan Kordyjan added itype:bug area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels Mar 30, 2022
@prolativ
Copy link
Contributor

This seems to be working correctly with the newest docs, e.g. https://dotty.epfl.ch/api/scala/IArray$.html#partition-ffffffff

@rochala
Copy link
Contributor Author

rochala commented Mar 30, 2022

https://dotty.epfl.ch/api/scala/IArray$.html#partition-ffffffff this is not method which is accessible via extension, but this is declaration of extension. I can't find such usage in existing documentation, but still it doesn't work properly as it does for implicitly added methods https://dotty.epfl.ch/api/scala/Int.html#+-ffffffb7

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

Successfully merging a pull request may close this issue.

3 participants