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

Escaping names of nested modules doesn't work #5048

Closed
fabiomadge opened this issue Feb 2, 2024 · 0 comments · Fixed by #5049
Closed

Escaping names of nested modules doesn't work #5048

fabiomadge opened this issue Feb 2, 2024 · 0 comments · Fixed by #5049
Assignees
Labels
during 2: compilation of correct program Dafny rejects a valid program during compilation invalid translated code The compiler generates invalid code, making the the target language infrastructure crash kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label lang: c# Dafny's C# transpiler and its runtime lang: java Dafny's Java 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

Dafny version

latest

Code to produce this issue

module A.base {
  datatype Dt = Dt
}

method Main() {
    print A.base.Dt, "\n";
}

Command to run and resulting output

No response

What happened?

namespace A.base {

Base is a keyword, but we don't detect it when nested within another module.

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

Mac

@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 invalid translated code The compiler generates invalid code, making the the target language infrastructure crash labels Feb 2, 2024
@fabiomadge fabiomadge self-assigned this Feb 2, 2024
@fabiomadge fabiomadge added the lang: java Dafny's Java transpiler and its runtime label Feb 2, 2024
@keyboardDrummer keyboardDrummer added the during 2: compilation of correct program Dafny rejects a valid program during compilation label Feb 7, 2024
fabiomadge added a commit that referenced this issue Feb 9, 2024
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 invalid translated code The compiler generates invalid code, making the the target language infrastructure crash kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label lang: c# Dafny's C# transpiler and its runtime lang: java Dafny's Java 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.

2 participants