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

Deprecated propagation of extension methods in docs #16473

Open
nicolasstucki opened this issue Dec 6, 2022 · 2 comments · May be fixed by #16608
Open

Deprecated propagation of extension methods in docs #16473

nicolasstucki opened this issue Dec 6, 2022 · 2 comments · May be fixed by #16608

Comments

@nicolasstucki
Copy link
Contributor

Compiler version

3.2.1

Minimized code

Marking a single method in an extension clause as deprecated makes them all deprecated in the docs. In this example we have valueOrError that is deprecated, but the docs also say that show, matches, value and valueOrAbort are deprecated

https://github.com/lampepfl/dotty/blob/cfcdefa50c26c3f42893cc980ef92662aa9ac392/library/src/scala/quoted/Quotes.scala#L28-L70

Output

Screenshot 2022-12-06 at 17 11 49

Expectation

Should split the extension group into deprecated and non deprecated.

@nicolasstucki
Copy link
Contributor Author

A minimal example would be the following.

extension (x: Int) 
  def a: Int = ???
  @deprecated def b: Int = ???

The docs should not show a as deprecated.

@nicolasstucki
Copy link
Contributor Author

There might be a similar issue for @experimental in #16310.

pikinier20 added a commit to dotty-staging/dotty that referenced this issue Jan 2, 2023
pikinier20 added a commit to dotty-staging/dotty that referenced this issue Jan 2, 2023
pikinier20 added a commit that referenced this issue Jan 5, 2023
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.

1 participant