Closed
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.