Use imported library with prefix (remove hide/add show) adds new prefix to use #57090
Labels
legacy-area-analyzer
Use area-devexp instead.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
After #54786 was closed, we now have a bug in the following code when using the assist:
file.dart:
main.dart
Currently adds a new prefix so at that line we end up with
void foo(l.l.A a) {}
.Also, prefix-related, I think this could probably be fixed together. If the code was instead:
It removes the
hide A
but it doesn't look whether there is a prefix on the element. I'm unsure if this suggestion should be suppressed or if we should remove the prefix (preferred) in that case (there is no suggestion if thehide A
or ashow
is not present at the import).The text was updated successfully, but these errors were encountered: