Convert all formal parameters to named doesn't handle super parameters well #55068
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-refactoring
Issues with analysis server refactorings
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I'm not sure whether there's anything we can reasonably do here, but given the code
If you select the constructor for
A
and ask to "Convert all formal parameters to named", the parameter "super.a" won't be changed and results in a compilation error.Selecting the constructor for
B
and performing the same operation will fix the code, but it isn't clear that the constructor inB
should be modified when refactoring the constructor inA
.Performing the refactorings in the other order (converting
B
first and thenA
) will also result in compilation errors until both have been converted.The text was updated successfully, but these errors were encountered: