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

Extern multi-argument constructor invoked incorrectly #1762

Closed
fabiomadge opened this issue Jan 25, 2022 · 0 comments · Fixed by #1763
Closed

Extern multi-argument constructor invoked incorrectly #1762

fabiomadge opened this issue Jan 25, 2022 · 0 comments · Fixed by #1763
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label lang: c# Dafny's C# transpiler and its runtime part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag

Comments

@fabiomadge
Copy link
Collaborator

class {:extern "ABC"} XYZ {
  var y: bool
  constructor {:extern} Init(x: bool) {
    y := x;
  }
  constructor {:extern} Create(x: bool, z: bool) {
    y := x && z;
  }
}

method Main() {
  var xyz := new XYZ.Init(true);
  print xyz.y, "\n";
  xyz := new XYZ.Create(true, false);
  print xyz.y, "\n";
}

The separator is written to an incorrect writer.

@fabiomadge fabiomadge added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag lang: c# Dafny's C# transpiler and its runtime labels Jan 25, 2022
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 lang: c# Dafny's C# transpiler and its runtime part: code-generation Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant