Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build crash: this should have been desugared into a Body(..) before this call in desugar_expr #7479

Open
JRI98 opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JRI98
Copy link
Contributor

JRI98 commented Jan 7, 2025

The following program, which contains a random a character in the middle of the code, crashes the compiler with the 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>
this should have been desugared into a Body(..) before this call in desugar_expr
Location: crates/compiler/can/src/desugar.rs:507:13
app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }

a

main! =
    crash ""
@Anton-4 Anton-4 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants