alwaysThrows should silence missing return hints #31384
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
When I run the analyzer (2.0.0-dev.7) on the following code:
I get this message:
Because the analyzer knows that
error()
always throws, I'd expect it to be able to deduce that no return is needed, just like it does if I manually writethrow "no"
.The text was updated successfully, but these errors were encountered: