-
Notifications
You must be signed in to change notification settings - Fork 261
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
Reserved name in go not escaped #4181
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
lang: golang
Dafny's transpiler to Go and its runtime
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Comments
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: golang
Dafny's transpiler to Go and its runtime
labels
Jun 14, 2023
keyboardDrummer
pushed a commit
that referenced
this issue
Apr 1, 2024
This PR fixes #4181 I added the corresponding test. Basically, module identifiers did not go through IdProtect when compiling to go, both on the declaration site and import site. This PR fixes that. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Other reserved names, like |
It seems that you have more tests in reserve than this issue described. |
I just used the shortest example I could find, I don't have a complete list, sorry. |
Closed in favor of #5283 |
MikaelMayer
added a commit
that referenced
this issue
Apr 3, 2024
#4181 added two tests but in the wrong directory. This PR fixes it.
MikaelMayer
added a commit
that referenced
this issue
Apr 11, 2024
#4181 added two tests but in the wrong directory. This PR fixes it. ### Description <!-- Is this a user-visible change? Remember to update RELEASE_NOTES.md --> <!-- Is this a bug fix for an issue visible in the latest release? Mention this in the PR details and ensure a patch release is considered --> ### How has this been tested? <!-- Tests can be added to `Source/IntegrationTests/TestFiles/LitTests/LitTest/` or to `Source/*.Test/…` and run with `dotnet test` --> <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
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: golang
Dafny's transpiler to Go and its runtime
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Dafny version
4.1.0
Code to produce this issue
Command to run and resulting output
No response
What happened?
Compiling the go sources fails.
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: