leo/compiler/tests/tuples/function_multiple.leo

10 lines
168 B
Plaintext
Raw Normal View History

2020-08-11 05:40:49 +03:00
function foo() -> (bool, bool) {
return (true, false)
}
function main() {
let (a, b) = foo();
2020-08-17 05:14:26 +03:00
console.assert(a == true);
console.assert(b == false);
2020-08-11 05:40:49 +03:00
}