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

Compiler crash on when missing a Void return #1111

Open
1 of 4 tasks
mpizenberg opened this issue Feb 26, 2025 · 0 comments
Open
1 of 4 tasks

Compiler crash on when missing a Void return #1111

mpizenberg opened this issue Feb 26, 2025 · 0 comments

Comments

@mpizenberg
Copy link

What Git revision are you using?

aiken v1.1.11+7c3c5a5

What operating system are you using, and which version?

  • Linux / Ubuntu
  • Linux / Other
  • macOS
  • Windows

Describe what the problem is?

I have this code, which expects a continuation function that returns void:

{
  let auth <- list.for_each(scope_auths)
  let _, _ <- treasury.check_auth(auth, tx, script_hash)
  Void
}

If I remove the Void at the end, I get this error:

 aiken::fatal::error
 Whoops! You found a bug in the Aiken compiler.

 Please report this error at https://github.com/aiken-lang/aiken/issues/new.
 In your bug report please provide the information below and if possible the code
 that produced it.

 Operating System: macos
 Architecture:     aarch64
 Version:          v1.1.11+7c3c5a5

 crates/aiken-lang/src/gen_uplc.rs:319:26

   Sequence or Pipeline should have at least one expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🪣 Backlog
Development

No branches or pull requests

1 participant