Closed
Description
Example:
// old_lib.dart
// @dart=2.19
// MapEntry is `final`, but can be implemented due to SDK exception.
class M implements MapEntry<int, int> {
int get key => 0;
int get value => 1;
String toString() => "Bad";
}
and
// new_lib.dart
// @dart=3.0
import "old_lib.dart";
class N implements M {
int get key => 0;
int get value => 1;
String toString() => "Evil";
}
void main() {
print(N()); // Evil.
}
This gives no errors, or warnings, in the front end.
Analyzer issue for this: #52078