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

[BUG] __getitem__ / __refitem__ on the same type. #2372

Open
lsh opened this issue Apr 21, 2024 · 1 comment
Open

[BUG] __getitem__ / __refitem__ on the same type. #2372

lsh opened this issue Apr 21, 2024 · 1 comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@lsh
Copy link
Contributor

lsh commented Apr 21, 2024

Bug description

Filing to follow up on #2294. Defining __getitem__ as:

fn __getitem__(self, idx: Int) -> Self.ElementType:
    return self.__refitem__(idx)

(apparently) fails on top of tree.

Steps to reproduce

See above

System information

N/A
@lsh lsh added bug Something isn't working mojo Issues that are related to mojo labels Apr 21, 2024
@JoeLoser
Copy link
Collaborator

FYI @lattner - see my comment on the InlineArray PR.

@linear linear bot removed the mojo Issues that are related to mojo label Apr 29, 2024
@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

3 participants