roc
roc copied to clipboard
Expr::TrySuffix expression was not completely removed in desugar_value_def_suffixed
Error:
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:1174:40
Code:
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.17.0/lZFLstMUCUvd5bjnnpYromZJXkQUrdhbva4xdBInicE.tar.br" }
import pf.Arg
import pf.File
import pf.Stdout
main =
Arg.list! {}
|> List.get 0
|> Result.withDefault "input.txt"
|> File.readUtf8!
|> Stdout.line!
(This is literally my first Roc program, so not sure what else would be helpful)
Sorry for the bad first experience @tonyfinn!
I've made this a high priority issue.
As a workaround; you can leave out the final !, so |> Stdout.line