Convert to async function body
refactoring should handle FutureOr
return types
#55773
Labels
analyzer-assist
Issues with analysis server assists
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Given a return type of
FutureOr<Foo>
, the code assistConvert to async function body
improperly adds anotherFuture
to the return type, resulting in a new return type ofFuture<FutureOr<Foo>>
.Before assist:
After assist:
Info
Dart SDK version: 3.5.0-159.0.dev (dev) (Wed May 15 13:03:12 2024 -0700) on "macos_arm64"
The text was updated successfully, but these errors were encountered: