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
Array indexing allows for signed integers
transition foo() { let data: [u8; 2] = [0u8, 1u8]; assert_eq(data[-1i32], 0u8); }
This produces Aleo instructions, which is then rejected by snarkVM The Leo compiler should correctly identify that this is an invalid access.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug Report
Array indexing allows for signed integers
This produces Aleo instructions, which is then rejected by snarkVM
The Leo compiler should correctly identify that this is an invalid access.
The text was updated successfully, but these errors were encountered: