Open
Description
Either the description is off, or the lint. Not sure which.
Reading the documentation for #unrelated_type_equality_checks says:
Comparing references of a type where neither is a subtype of the other most likely will return false and might not reflect programmer's intent.
If we have a simplified version of the protobufEnum world:
class C {}
class A extends C {}
class B extends C {}
main() {
print(A() == B());
}
Then A is not a subtype of B nor is B a subtype of A, and from the description it seems I would get a lint, but when I try it I don't.
If sibling types where considered unrelated it would be useful for prottobuf enums, they should never be compared between different enum types, as the answer is always false, even if the underlying value is the same.
Related to internal issue: b/146122892