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 check .meta/Example.roc
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
a Expr::TrySuffix expression was not completely removed in desugar_value_def_suffixed
Location: crates/compiler/can/src/expr.rs:1125:40
Extracting the nested ? expressions prevents the crash:
isBomb : ListStr, I64, I64 -> ResultBool [OutOfBounds]
isBomb = \rows, nx, ny ->
y = Num.toU64Checked? ny
x = Num.toU64Checked? nx
rows
|>List.get? y
|>Str.toUtf8|>List.get? x
|>Bool.isEq'*'|>Ok
The text was updated successfully, but these errors were encountered:
This code causes the compiler to crash with the following error on
roc check
orroc test
.Extracting the nested ? expressions prevents the crash:
The text was updated successfully, but these errors were encountered: