Private interface method flagged as not referenced #60697
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
P3
A lower priority bug or feature request
Problem
In Dart 3.7.2, when I declare a private interface method that I implement in some other classes, the Dart analyzer complains that it isn't referenced.
Repro
Here's a DartPad that demonstrates the issue. I'll also paste the code here for clarity.
Additional Info
When using VS Code, it seems like the analyzer knows that
_foo
is used elsewhere because I can jump to implementors and callers. I assume that's powered by the analyzer too, so it's odd that this error is present.The text was updated successfully, but these errors were encountered: