-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
devexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
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
}
Metadata
Metadata
Assignees
Labels
devexp-serverIssues related to some aspect of the analysis serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)