Java Build Name Clash #4336
Labels
crash
Dafny crashes on this input, or generates malformed code that can not be executed
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: java
Dafny's Java transpiler 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
Dafny version
4.2.0
Code to produce this issue
Command to run and resulting output
What happened?
The problem is that, at the top of the generated Java file we have:
This results in the call
Stack.__default.Create()
applying not to the package, but to the generated classStack
.What type of operating system are you experiencing the problem on?
Linux
The text was updated successfully, but these errors were encountered: