leo/tests/compiler/tuples/destructured.leo

12 lines
206 B
Plaintext
Raw Normal View History

2021-04-20 04:08:14 +03:00
/*
namespace: Compile
expectation: Pass
input_file: inputs/true_true.in
*/
function main(a: (bool, bool)) -> (bool, bool) {
2021-05-06 14:27:42 +03:00
let (a, b) = (a.0 ? false : true, a.1 ? false : true);
2021-04-20 04:08:14 +03:00
return (b, a);
2021-05-06 14:27:42 +03:00
}