Java sequence prefix < fail compilation when combined with if ... then ... else #3952
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: 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.1.0
Code to produce this issue
Command to run and resulting output
What happened?
Introducing the if then else condition as the second argument to the '<' operator for sequences causes compilation to Java to crash due to an incompatible type error.
Note that removing the if then else condition and replacing with just '[]' does not cause a crash
What type of operating system are you experiencing the problem on?
Linux
The text was updated successfully, but these errors were encountered: