unrelated_type_equality_checks doesn't trigger on sibling types #58090
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-negative
linter-set-core
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Either the description is off, or the lint. Not sure which.
Reading the documentation for #unrelated_type_equality_checks says:
If we have a simplified version of the protobufEnum world:
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
The text was updated successfully, but these errors were encountered: