You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ roc --version
roc nightly pre-release, built from commit bf5b13e237f on Wed Oct 9 09:13:56 UTC 2024
Panic.roc:
app [main] {
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br",
}
import pf.Stdout
main =
# Note: if the type annotation below is removed the compiler won't panic any more
x : X
x = A
_ = Inspect.toStr x
Stdout.line "Nope"
X : [
A,
B (List X),
C (List (Str, X)),
]
Error:
$ roc build Panic.roc
thread 'main' panicked at crates/compiler/mono/src/borrow.rs:396:34:
internal error: entered unreachable code:
No borrow signature for LambdaName { name: `2.IdentId(18)`, niche: Niche(Captures([InLayout(245)])) } layout.
Tip 1: This can happen when you call a function with less arguments than it expects.
Like `Arg.list!` instead of `Arg.list! {}`.
Tip 2: `roc check yourfile.roc` can sometimes give you a helpful error.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
This program triggers a panic in the compiler.
Panic.roc:
Error:
The text was updated successfully, but these errors were encountered: