Ordering problem in Python code generator #5569
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
lang: python
Dafny's Python transpiler and its runtime
part: code-generation
Support for transpiling Dafny to another language. If relevant, add a `lang:` tag
Dafny version
4.6.0
Code to produce this issue
Command to run and resulting output
What happened?
The two type declarations in the Dafny program are generated into Python declarations in the same order. Evidently, Python does not like that order.
By declaring
Trait
beforeC
in the Dafny program, the Python declarations also get swapped, so then the Python is well-formed.What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: