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
}
@bwilkerson @scheglov
See this code:
What's also confusing here is that the analyzer navigation and completion ignores them:
@bwilkerson @scheglov