You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing an array element out of range generates an invalid message. size and index values are swapped with each other. For example for the following code
fnmain() -> pub u8 {[][3]}
Compiler fails with
error: Index out of bounds, array has size 3, but index was 0
Expected Behavior
Proper error message "Index out of bounds, array has size 0, but index was 3"
Aim
Accessing an array element out of range generates an invalid message.
size
andindex
values are swapped with each other. For example for the following codeCompiler fails with
Expected Behavior
Proper error message "Index out of bounds, array has size 0, but index was 3"
Bug
Example code with configured CI https://github.com/akonior/noir_example/actions/runs/7030885432/job/19131368752
To Reproduce
Write simple Noir program
and run
Installation Method
Binary
Nargo Version
0.19.2
Additional Context
No response
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response
The text was updated successfully, but these errors were encountered: