Stream: bugs

Topic: Segfault on recursive function definition


view this post on Zulip Matthieu Pizenberg (Dec 04 2025 at 21:25):

I have the following example that triggers a segfault. Am I missing something about the syntax? I’ll try to look into it.

countdown = |n| if True { 0 } else { countdown(n - 1) }

main! = || {
    _result = countdown(1)
}

view this post on Zulip Matthieu Pizenberg (Dec 04 2025 at 22:14):

Ok, I got a fix for this one too. PR incoming.

view this post on Zulip Matthieu Pizenberg (Dec 04 2025 at 22:36):

Ok PR with the fix: https://github.com/roc-lang/roc/pull/8573


Last updated: Dec 21 2025 at 12:15 UTC