Not clear if @visibleForTesting elements should be visible in other packages #60731
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
https://api.flutter.dev/flutter/meta/visibleForTesting-constant.html says
But the analyzer doesn't warn if an element is used in a test from another package.
It is not clear if the documentation or the analyzer is wrong here. I think both interpretations are useful in some cases.
Maybe we even need two different annotations
The text was updated successfully, but these errors were encountered: