leo/compiler/tests/tuples/function.leo

10 lines
169 B
Plaintext
Raw Normal View History

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