leo/tests/compiler/tuples/access.leo
2021-07-01 13:40:29 -07:00

14 lines
276 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: inputs/true_true.in
*/
function main(a: (bool, bool)) -> (bool, bool) {
let b = (false, false, true).0;
let c = (false, true, false).1;
let d = (true, false, false).2;
return (a.0 == b, (a.1 == c) == d);
}