Describe the issue
The lint fails to appear when comparing two (unrelated) extension types
To Reproduce
extension type UserID(int id) { }
extension type ProfileID(String id) { }
void main() {
final a = 1;
final b = UserID(1);
final c = ProfileID("Hello");
print(a == b); // unrelated
print(b == c); // <-- no lint?
print(a == c); // unrelated
}
This also happens in the subtler case when ProfileID is an extension on int as well:
extension type UserID(int id) { }
extension type ProfileID(int id) { }
void main() {
final a = 1;
final b = UserID(1);
final c = ProfileID(1);
print(a == b); // unrelated
print(b == c); // <-- no lint?
print(a == c); // unrelated
}
Expected behavior
I would expect comparing b == c would show a lint, just like a == b and a == c does.
Describe the issue
The lint fails to appear when comparing two (unrelated) extension types
To Reproduce
This also happens in the subtler case when
ProfileIDis an extension onintas well:Expected behavior
I would expect comparing
b == cwould show a lint, just likea == banda == cdoes.