Specification on codatatype function triggers wrong encoding #4990
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
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
latest-nightly
Code to produce this issue
Command to run and resulting output
What happened?
Init() was compiled like a regular method. If I remove the specification, it works.
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered: