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
what is the expected behavior here? Should comparisons with a null value ever pass? (even if it's two nulls)
int x; int y = 0; int z; assert(x == y) // should fail assert(x == z) // should pass?
The text was updated successfully, but these errors were encountered:
assert(x == z) will pass. both are null, null is universal within a type.
assert(x == z)
assert(x == y) will fail. 0 != null.
assert(x == y)
0 != null
Sorry, something went wrong.
schlosser
No branches or pull requests
what is the expected behavior here? Should comparisons with a null value ever pass? (even if it's two nulls)
The text was updated successfully, but these errors were encountered: