Nonsensical error message on variable rename #3159
Labels
in editor
Relates to code editing or language features
in lsp/analysis server
Something to be fixed in the Dart analysis server
is bug
Milestone
Describe the bug
Renaming
date
tonow
fails with:Usage of constructor "DateTime.now" declared in "date_time.dart" will be shadowed by renamed local variable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
now
is a valid name, and shouldn't fail. It also doesn't shadow anything, as it seems to think.Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: