Dartanalyzer should report an error when catchError returns a different type #35545
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Dartanalyzer doesn't detect any error/warning for the following code. However, there will be a run-time error: type 'String' is not a subtype of type 'FutureOr<List>'
It is hard to pick up this kind of errors by eyes.
Dart SDK: 2.1
The text was updated successfully, but these errors were encountered: