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
Given the following static operator==
public static bool operator ==(HttpMethod left, HttpMethod right) => left is null || right is null ? ReferenceEquals(left, right) : left.Equals(right);
The left is null is compiled as though it were left == null which causes the operator to invoke itself
left == null
op_Equality: function (left, right) { return System.Net.Http.HttpMethod.op_Equality(left, null) || System.Net.Http.HttpMethod.op_Equality(right, null) ? H5.referenceEquals(left, right) : left.equalsT(right); },
Changing the c# code to this unblock me for now
public static bool operator ==(HttpMethod left, HttpMethod right) => ReferenceEquals(left, null) || ReferenceEquals(right, null) ? ReferenceEquals(left, right) : left.Equals(right);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following static operator==
The left is null is compiled as though it were
left == null
which causes the operator to invoke itselfChanging the c# code to this unblock me for now
The text was updated successfully, but these errors were encountered: