-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[BUG] Can't form alias to Int
's dunder methods
#3213
Comments
This is intended behaviour. The real question is whether this method should be overloaded. |
Will defer to @joe |
That's the thing: it's not overloaded, unless overloading means something very different in Mojo. |
Ah, then this is indeed a bug |
It also happens to |
The problem seems to be that fn main():
Int.__eq__
@register_passable
struct Int(EqualityComparable):
fn __eq__(self, rhs: Self) -> Bool:
return False
fn __ne__(self, rhs: Self) -> Bool:
return False |
Bug description
As title. It's odd since most other types work.
Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: