leo/tests/compiler/tuple/access_out_of_bounds_fail.leo
2022-07-09 15:02:45 -07:00

12 lines
221 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file:
- inputs/bool_bool.in
*/
function main(a: bool, b: bool) -> (bool, bool) {
let t: (bool, bool) = (a, b);
return (t.0, t.2); // Index `t.2` is out of bounds.
}