We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looking at what I posted in SomeRanDev/reflaxe.CSharp#2 (comment) again, I noticed this:
public boolean equals(Enum other) { if (!(other instanceof Option.Some)) { return false; } else { Option.Some other = (Option.Some)other; if (other.ordinal() != this.ordinal()) { return false; } else { return Jvm.maybeEnumEq(other.v, this.v); } } }
The if (other.ordinal() != this.ordinal()) check seems redundant because we already know that enums of the same class have the same ordinal by design.
if (other.ordinal() != this.ordinal())
The text was updated successfully, but these errors were encountered:
5957d97
Simn
No branches or pull requests
Looking at what I posted in SomeRanDev/reflaxe.CSharp#2 (comment) again, I noticed this:
The
if (other.ordinal() != this.ordinal())
check seems redundant because we already know that enums of the same class have the same ordinal by design.The text was updated successfully, but these errors were encountered: