roc icon indicating copy to clipboard operation
roc copied to clipboard

Optimized build error: thread 'main' panicked at crates/vendor/morphic_lib/src/analyze.rs

Open JRI98 opened this issue 5 months ago • 0 comments

The following program doesn't build when optimizations are enabled and the compiler crashes with error:

thread 'main' panicked at crates/vendor/morphic_lib/src/analyze.rs:823:73:
called `Option::unwrap()` on a `None` value
app [main] {
    pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br",
}

f = \a ->
    f (a + 1)

main =
    _ = f 0
    crash ""

JRI98 avatar Sep 01 '24 11:09 JRI98