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
As title.
@value struct S[T: CollectionElement]: var data: T fn __eq__[ T: ComparableCollectionElement, //, ](self: S[T], other: S[T]) -> Bool: return self.data == other.data fn main(): var a = S(1) var b = S(2) a == b # invalid call to '__eq__': could not deduce parameter 'T' of parent struct 'S' a.__eq__(b) # runs fine
Mojo 2024.7.705 (3d1f7817) on Docker, Intel Mac
The text was updated successfully, but these errors were encountered:
Thanks for filing this! FYI @lattner @Mogball
Sorry, something went wrong.
Actually, I was wrong, 97d70d3 fixed this exact problem, and it works on mojo 2024.7.905 (e860c551).
mojo 2024.7.905 (e860c551)
Actually, I was wrong, 97d70d3 fixed this exact problem, and it works on (mojo 2024.7.905 (e860c551)).
Confirmed it works on top-of-tree today. Closing this issue as such. Thanks!
List[T] == List[T]
No branches or pull requests
Bug description
As title.
Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: