Migration tool doesn't recognize Never in flow control #44420
Labels
area-migration (deprecated)
Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
customer-dart-sass
NNBD
Issues related to NNBD Release
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
The migration tool doesn't recognize the effect functions that return
Never
have on the control flow of a function. Consider the following unmigrated code:The migrator correctly tries to change
int a
toint? a
but it also tries to changeint foo()
toint? foo()
, which is unnecessary.The text was updated successfully, but these errors were encountered: