Skip to content

Missing and extra quick fixes for undefined type #24714

@bwilkerson

Description

@bwilkerson

Given the following files:

a.dart
library a;
class One {}

b.dart
library b;
class One {}
class Two {}

c.dart
library c;
import 'b.dart' show Two;
main () {
new Two();
new One();
}

Place the cursor over the name "One" in c.dart and ask for quick fixes.

I expected to see a suggestion to import a.dart, but it isn't there.
I didn't expect to see a suggestion to change the name to "int", but it is there.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-quick-fixIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions