function foo() -> (bool, bool) { return (true, false) } function main() { const a = foo(); console.assert(a.0 == true); console.assert(a.1 == false); }