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

Attempting to destructure array as tuple has wrong error #2351

Closed
ludamad opened this issue Aug 16, 2023 · 0 comments · Fixed by #2360
Closed

Attempting to destructure array as tuple has wrong error #2351

ludamad opened this issue Aug 16, 2023 · 0 comments · Fixed by #2360
Labels
bug Something isn't working

Comments

@ludamad
Copy link
Collaborator

ludamad commented Aug 16, 2023

Aim

Simple example:
let (note0, _note1) = [1, 2];
Screenshot 2023-08-16 at 5 19 56 PM

Expected Behavior

Some helpful error

Bug

The error here seems to say a type is not equal to itself, really it fails to destructure the array as a tuple

To Reproduce

Installation Method

None

Nargo Version

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@ludamad ludamad added the bug Something isn't working label Aug 16, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Aug 16, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants