Closed
Description
See this code:
extension FileSystemEntityExtension on FileSystemEntity {
// method name collision with the path field:
String path() {
return '';
}// name collision with the method:
bool get existsSync => false;
}
What's also confusing here is that the analyzer navigation and completion ignores them:
f(FileSystemEntity entity) {
entity.path; // <-- completes and navigates to lib/io/file_system_entity.dart
entity.existsSync(); // <-- here too
}