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

Reserved keywords in Go in need of escape #5283

Closed
MikaelMayer opened this issue Apr 1, 2024 · 0 comments · Fixed by #5441
Closed

Reserved keywords in Go in need of escape #5283

MikaelMayer opened this issue Apr 1, 2024 · 0 comments · Fixed by #5441
Assignees
Labels
during 2: compilation of correct program Dafny rejects a valid program during compilation 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 priority: next Will consider working on this after in progress work is done

Comments

@MikaelMayer
Copy link
Member

MikaelMayer commented Apr 1, 2024

Dafny version

latest-nightly

Code to produce this issue

module fmt {}

method Main(){
    print "done\n";
}

Command to run and resulting output

Try to compile and run

What happened?

It fails.
Follow-up from #4181

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 Apr 1, 2024
@fabiomadge fabiomadge removed their assignment Apr 1, 2024
@keyboardDrummer keyboardDrummer added during 2: compilation of correct program Dafny rejects a valid program during compilation priority: next Will consider working on this after in progress work is done 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 labels Apr 23, 2024
@MikaelMayer MikaelMayer self-assigned this May 13, 2024
MikaelMayer added a commit that referenced this issue May 14, 2024
MikaelMayer added a commit that referenced this issue May 17, 2024
This PR fixes #5283
I added the corresponding 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
during 2: compilation of correct program Dafny rejects a valid program during compilation 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 priority: next Will consider working on this after in progress work is done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants