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

Functions issue in the Rust backend #5996

Open
Tracked by #5561
MikaelMayer opened this issue Dec 20, 2024 · 0 comments
Open
Tracked by #5561

Functions issue in the Rust backend #5996

MikaelMayer opened this issue Dec 20, 2024 · 0 comments
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@MikaelMayer
Copy link
Member

Dafny version

Latest nightly

Code to produce this issue

newtype u8 = x : nat | x < 256
method Main() {
  print () => 1;
  print (n: u8) => n;
}

Command to run and resulting output

dafny run -t:rs file.dfy

What happened?

Two compilation errors.
Functions without arguments also required to implement the Dafny trait in the runtime.
Moreover, since now all closures borrow their parameters, we should update the runtime so that it reflects that.

What type of operating system are you experiencing the problem on?

Windows

@MikaelMayer MikaelMayer added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

No branches or pull requests

1 participant