leo/dynamic-check/tests/tuples/invalid_tuple_access.leo

5 lines
117 B
Plaintext

function main() {
let a = [1u8; 3];
let b = a.0; // It is illegal to index into an array using dot syntax.
}