Migration tool should call out inserted casts of function literals as questionable. #40471
Labels
area-migration (deprecated)
Deprecated: this label is no longer actively used (was: issues with the `dart migrate` tool).
NNBD
Issues related to NNBD Release
P3
A lower priority bug or feature request
As of https://dart-review.googlesource.com/c/sdk/+/134504, there are certain situations where the migration tool may insert a type cast that is guaranteed to fail. For example:
gets migrated to:
In this sort of situation, user intervention is required to figure out how the code should be migrated. The tool should either highlight the cast as questionable.
Alternatively, we could either:
f((x) => g(x)!);
in this example.The text was updated successfully, but these errors were encountered: