Skip to content
New issue

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

rule to check when comparing to the same object #1503

Closed
masters3d opened this issue May 8, 2017 · 2 comments
Closed

rule to check when comparing to the same object #1503

masters3d opened this issue May 8, 2017 · 2 comments
Labels
duplicate Issues that already exist in other terms.

Comments

@masters3d
Copy link
Contributor

masters3d commented May 8, 2017

if someObj == someObj {} // always true
if objA != objA {} // always false

Same goes goes for < and > which are always false when comparing to self.

@marcelofabri
Copy link
Collaborator

Duplicate of #1371

@marcelofabri marcelofabri added the duplicate Issues that already exist in other terms. label May 9, 2017
@masters3d
Copy link
Contributor Author

haha, I filed this rule multiple times! I should just implement it so it goes out of my head!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues that already exist in other terms.
Projects
None yet
Development

No branches or pull requests

2 participants