leo/asg/tests/pass/tuples/function_multiple.leo

10 lines
170 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function foo() -> (bool, bool) {
return (true, false)
}
function main() {
const (a, b) = foo();
2021-01-25 18:17:42 +03:00
console.assert(a == true);
console.assert(b == false);
}