Skip to content

Self types appear as inherited in docs #13204

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
nicolasstucki opened this issue Jul 29, 2021 · 1 comment · Fixed by #13207
Closed

Self types appear as inherited in docs #13204

nicolasstucki opened this issue Jul 29, 2021 · 1 comment · Fixed by #13207
Assignees
Milestone

Comments

@nicolasstucki
Copy link
Contributor

Compiler version

3.0.1

Minimized code

In the documentation of scala.quoted.Quotes (https://dotty.epfl.ch/api/scala/quoted/Quotes.html) we see the self types as if they are inherited.

trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
   ...
}

Screenshot 2021-07-29 at 14 26 50

Expectation

Sefl types should not appear as inherited as those are not yet inherited. They guarantee that the implementation will inherit them.

We should show the self type in some form. Maybe the first code snippet could be charged for classes that have an explicit self type

- trait Quotes
+ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching }

Or maybe put it in its own section as most users will not care about this information.

@nicolasstucki
Copy link
Contributor Author

Related to #13203

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