Analyzer says unnecessary_cast
, but removing cast is a compile-time error.
#34150
Labels
devexp-warning
Issues with the analyzer's Warning codes
devexp-wolf-analysis
Static analysis that requires the proposed Wolf analysis framework
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Milestone
Example:
Here the analyzer (according to dartpad) complains that
as num
is unnecessary.However, without the cast,
minValue
is not assignable toT
.The text was updated successfully, but these errors were encountered: