Open FMorschel opened 2 days ago
Summary: The "Extract function" refactoring incorrectly extracts void
asynchronous functions as void
instead of Future<void>
. The proposed fix is to change the extracted function's return type to Future<void>
for consistency with asynchronous behavior.
The "Extract function" option for the following code:
Extracts a new function correctly, but in cases like the above, we have a
void
return with anasync
function. I propose that in these cases we change the return type forFuture<void>
.Current output:
Proposal: