leo/tests/compiler/tuples/access.leo

14 lines
276 B
Plaintext
Raw Normal View History

2021-06-23 14:16:44 +03:00
/*
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;
2021-07-01 23:40:29 +03:00
return (a.0 == b, (a.1 == c) == d);
2021-06-23 14:16:44 +03:00
}