Lyricdev
GitHub

LYR-RT0006

stack overflow

panic ยท spec 13-abi

A task's or the main thread's stack is exhausted, typically by recursion without an end. The panic ends the task it happens in, like any other, with the frames that led there.

Program

fn down(n: int): int {
    return down(n + 1) + 1;
}

fn main(): void {
    assert(down(0) > 0);
}