Analyzer soundness problem: Return void to Null allowed. #42093
Labels
legacy-area-analyzer
Use area-devexp instead.
NNBD
Issues related to NNBD Release
soundness
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Consider the following program:
The analyzer (2.9.0-11.0.dev and 2eaac80) accepts this program with no errors, but it is not sound to allow an expression of type
void
to be returned when the return type isNull
, because the returned object could have any type whatsoever.A similar issue arises with the asynchronous form:
The text was updated successfully, but these errors were encountered: