Analyzer: Mixed returns is not an error any more #39476
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following library:
As of 54011e5,
dartanalyzer
reports errors for this library:The language specification used to have a rule saying that it is a compile-time error to have both
return;
andreturn e;
in the same function, but this is no longer the case. The change occurred in SDK commit 9388cb3, and it was a consequence of integrating the feature specification invalid-returns.md into the specification. So the analyzer should stop checking and reportingmixed_return_types
. The current spec text is here.The text was updated successfully, but these errors were encountered: