Skip to content

Fix for ambiguous import doesn't trigger for static members #60276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FMorschel opened this issue Mar 7, 2025 · 0 comments
Closed

Fix for ambiguous import doesn't trigger for static members #60276

FMorschel opened this issue Mar 7, 2025 · 0 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-quick-fix Issues with analysis server (quick) fixes P2 A bug or feature request we're likely to work on

Comments

@FMorschel
Copy link
Contributor

FMorschel commented Mar 7, 2025

After #56830 I've noticed that the fix doesn't work for static members (constructors, enum constants, etc).

import 'lib1.dart'; // Imports a `MyClass`
import 'lib2.dart'; // Imports another `MyClass`

void f() {
  var _ = [MyClass.new];
}

It doesn't offer a fix.

Here is the CL https://dart-review.googlesource.com/c/sdk/+/414360

@pq pq added devexp-quick-fix Issues with analysis server (quick) fixes area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. P2 A bug or feature request we're likely to work on labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-quick-fix Issues with analysis server (quick) fixes P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

2 participants