-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Consider:
// a.dart
class Foo {}
// b.dart
class Foo {}
// c.dart
import 'a.dart';
import 'b.dart';
void main() {
Foo(); // Conflict, defined in both `a.dart` and `b.dart`
}
Going through imports to manually add that hide Foo;
on the relevant import is tedious.
Could we add a quick fix for it? When applied on Foo()
, it could suggest:
- Add
hide Foo
toimport 'a.dart'
- Add
hide Foo
toimport 'b.dart'
Supporting static extensions conflicts too would be great.
srawlins and FMorschel
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestdevexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixeslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug