proposal: function_expression_with_incorrect_types
#59114
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-lint-proposal
linter-status-pending
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
function_expression_with_incorrect_types
Description
Use the parameter types expected by the target in function expression.
Details
With
always_specify_types
you have to add type annotations on everything. With function expressions it's always a code smell to have a type that doesn't match the declared parameter types.Kind
Avoiding code smell.
Bad Examples
Good Examples
Discussion
At the time of the creation of this lint implementation (#2530) there were several diagnostics in Flutter codebase.
Discussion checklist
The text was updated successfully, but these errors were encountered: