cast_nullable_to_non_nullable
tests should include cast patterns
#59062
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-false-negative
linter-new-language-feature
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Child issue of #58837
I think there should be a test case like:
in which the lint rule would report that the first destructured record field (which is nullable) should not be cast to a non-nullable type.
The text was updated successfully, but these errors were encountered: