For example, this test fails.
We should report an error for B, but not for X.
test_error_mismatchedGetterAndSetterTypes_OK_alreadyReported_super() async {
newFile('/test/lib/a.dart', content: r'''
class A {
int get foo => 0;
}
class B extends A {
set foo(String _) {}
}
''');
addTestFile(r'''
import 'a.dart';
class X extends B {}
''');
await resolveTestFile();
assertNoTestErrors();
}
For example, this test fails. We should report an error for
B
, but not forX
.