leo/tests/pass/parse/tuples/function_multiple.leo

10 lines
168 B
Plaintext
Raw Normal View History

2021-03-03 20:59:24 +03:00
function foo() -> (bool, bool) {
return (true, false)
}
function main() {
let (a, b) = foo();
console.assert(a == true);
console.assert(b == false);
}