New Rule for Enum comparison #233
jorispoppe
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When you compare two enum, the compiler does not raise an error when comparing two different enum. Is there a possibility to create a rule so that we get a warning?
Compare enum directly or compare with record field, both no warning from the compiler. (Result will always be false)
Example code:
Beta Was this translation helpful? Give feedback.
All reactions