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

fix!: Disable automatically mapping a Dafny string to a Go string in externs #3647

Merged
merged 12 commits into from
Feb 28, 2023
Merged
Prev Previous commit
Next Next commit
Fix and document test
  • Loading branch information
robin-aws committed Feb 27, 2023
commit 468d7193e692bf33163770f93741cf2c2cc9cc4a
4 changes: 4 additions & 0 deletions Test/git-issues/github-issue-2989.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ method Main() {
var s := Foo();
}

// An extern method that returned a string used to cause
// an internal contract violation and nonsensical errors like
// "Error: Cannot convert from string to seq<char>"

method {:extern "foo"} Foo() returns (s: string)

method Bar() returns (s: string) {
Expand Down
4 changes: 4 additions & 0 deletions Test/git-issues/github-issue-2989.dfy.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

Dafny program verifier finished with 2 verified, 0 errors

Dafny program verifier finished with 2 verified, 0 errors