leo/compiler/tests/tuples/function_multiple.leo

10 lines
171 B
Plaintext
Raw Normal View History

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