leads to "Test evaluation failed: error.StackOverflow".
Is that something to report in GitHub issues, or expected?
I don't think we have tail call optimization yet, so the recursion is prob blowing the stack!
if there's not already a GH issue related to tail call optimization, would be good to add! or if there is one already you can add your example as comment 1that's a good & simple example of what should work when we have it
we should have it - I think @Luke Boswell ported Jelle's TRMC implementation from the original compiler
https://github.com/roc-lang/roc/issues/9916
Last updated: Jul 23 2026 at 13:15 UTC