control_flow_in_finally
could be enhanced to consider functions that return Never
#4865
Labels
P2
A bug or feature request we're likely to work on
set-recommended
Affects a rule in the recommended Dart rule set
type-enhancement
A request for a change that isn't a bug
In flutter/engine#50255 @jonahwilliams and I debugged a tough "this program doesn't catch errors" bug.
It was basically narrowed down to this minimal program:
https://dart.dev/tools/linter-rules/control_flow_in_finally appears to be able to philosophically catch this bug.
I wonder if we could enhance it to lint functions that return
Never
, i.e.:The text was updated successfully, but these errors were encountered: