8000 analyzer is not correctly reporting transitive deprecation warnings · Issue #53587 · dart-lang/sdk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

analyzer is not correctly reporting transitive deprecation warnings #53587

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

Open
pq opened this issue Sep 21, 2023 · 0 comments
Open

analyzer is not correctly reporting transitive deprecation warnings #53587

pq opened this issue Sep 21, 2023 · 0 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. 8000 devexp-warning Issues with the analyzer's Warning codes P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@pq
Copy link
Member
pq commented Sep 21, 2023

Follow-up from #59302.

Given a class:

@deprecated
class C {
  C();
  C.named();
  void m(){}
}

and uses:

void main() {
  C().m();
  C.named();
  C? c;
}

we are only reporting deprecation on the C type references and not the members.

image

The documentation of the annotation states:

Deprecation applies transitively to parts of a deprecated feature:

  • If a library is deprecated, so is every member of it.
  • If a class is deprecated, so is every member of it.
  • If a variable is deprecated, so are its implicit getter and setter.

Reporting should look more like:

image
@pq pq self-assigned this Sep 21, 2023
@pq pq added devexp-warning Issues with the analyzer's Warning codes legacy-area-analyzer Use area-devexp instead. P2 A bug or feature request we're likely to work on labels Sep 21, 2023
@srawlins srawlins added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Mar 27, 2024
@bwilkerson bwilkerson added area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. and removed legacy-area-analyzer Use area-devexp instead. labels Feb 27, 2025
@pq pq removed their assignment Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-warning Issues with the analyzer's Warning codes P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants
0