Variable in for-in loop can’t be renamed using rename refactor #52149
Labels
analyzer-refactoring
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
Given the following code:
Place the cursor on the identifier
value
on the line marked (1), and request a rename refactor.Expected result: it should be possible to rename this variable.
Observed result: the IDE shows the message "The element can't be renamed."
I see similar behaviour with for-in collection elements, e.g.:
Reproduced in 60fec9c.
The text was updated successfully, but these errors were encountered: