"Find uses" filters inaccessible matches too aggressively #19660
Labels
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
closed-obsolete
Closed as the reported issue is no longer relevant
Given the following sources:
test1.dart:
class A {
foo() {}
}
f(A a) {
a.foo();
}
test2.dart:
import 'test1.dart';
class B extends A {
@override
foo();
}
main() {
f(new B());
}
Selecting B.foo and using the editor's "find uses" feature produces 0 search results. This is incorrect: f calls A.foo, and this is a valid match because B.foo overrides A.foo.
If the line "import 'test2.dart';" is added to the top of test1.dart, then the search works properly. This should not be necessary to get proper search results (in fact, editor correctly shows a hint indicating that this is an unused import).
The text was updated successfully, but these errors were encountered: