Lyricdev
GitHub

LYR-RT0005

out of memory

panic ยท spec 13-abi

An allocation does not fit: the heap has no room left (or exceeds the limit the embedding host set), or an array or string length is so large that its size does not fit the address space.

Program

fn make(n: int): int[] {
    return [0] * n;
}

fn main(): void {
    assert(make(2000000000000000000).length() > 0);
}