Migration tool gets distracted by assert functions #42380
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
nnbd-migration-correctness-example
Concrete examples of the migration engine producing an incorrect result on a phase 1 package
With the following code:
the migration tool suggests:
but the return type of the method should be
int
instead ofint?
because of the null gard at the end.Without assert the migration tool works correctly and suggest:
The text was updated successfully, but these errors were encountered: