Lint local variables with the type inferred void #1134
Labels
lint-request
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
type-question
A question about expected behavior or functionality
Should this be part of void_checks?
See dart-lang/sdk#34171
Basically,
is legal, but x is an unusable variable, so it doesn't really have a point. It's better to lint "list.removeWhere() returns void so it should not be assigned to a variable, which will be unusable." or something.
The text was updated successfully, but these errors were encountered: