leo/tests/compiler/tuple/access_negative_fail.leo

12 lines
217 B
Plaintext
Raw Normal View History

2022-07-10 01:02:45 +03:00
/*
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.-1); // Index `t.-1` is invalid.
}