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
This happens if I do leo build on howardwu/silly-sudoku:
Compiling --> "/home/batman/silly-sudoku/src/lib.leo": 38:53
|
38 | let grid_value = self.puzzle_grid[i][j];
| ^^^
|
= Cannot access the index of non-array type `u8`.
I also tried this simpler version, which got the same error:
function main(puzzle: [u8; (3, 3)]) -> bool {
console.log("{}", puzzle);
let c: u8 = puzzle[1][0];
return (c == 3)
}
🐛 Bug Report
Build error for arr[i][j]
Steps to Reproduce
This happens if I do
leo build
onhowardwu/silly-sudoku
:I also tried this simpler version, which got the same error:
with the
array2d.in
file:But when I didn't pass the 2d array through the parameter, this worked:
Your Environment
The text was updated successfully, but these errors were encountered: