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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
function main () { let x = [false; (2, 2)]; let y: bool = x[0][0]; }
Compiling --> "d:\\Work\\leo_playground\\src/main.leo": 3:23 | 3 | let y: bool = x[0][0]; | ^^^ | = Cannot access the index of non-array type `bool`.
[[false, false], [false, false]] indexed by [0][0] should return a bool
The text was updated successfully, but these errors were encountered:
another example that seems to be the same error with a different message
function main () { //[[[0], [0], [0], [0]], [[0], [0], [0], [0]], [[0], [0], [0], [0]], [[0], [0], [0], [0]]] let x: [[u8; (4, 1)]; 4] = [[0u8; (4, 4, 1)], [0u8; (4, 1)], [0u8; (4, 1)], [0u8; (4, 1)]]; let y: [u8; 1] = x[3][1u32]; }
Compiling --> "d:\\Work\\leo_playground\\src/main.leo": 4:5 | 4 | let y: [u8; 1] = x[3][1u32]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = Mismatched types. Expected type `[u8]`, found type `u8`.
Sorry, something went wrong.
Will this be fixed in the ASG patch?
Fixed by ASG.
fixed by asg (2657c44)
No branches or pull requests
馃悰 Bug Report
Code snippet to reproduce
Error
Expected Behavior
[[false, false], [false, false]] indexed by [0][0] should return a bool
Your Environment
The text was updated successfully, but these errors were encountered: