We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0.0
lemma Try(i: int) { match i { case i' => var x :| x == i'; assert x == i'; } }
dafny format file.dfy
When running dafny format, one gets the following result:
Instead it shouldn't change the indentation.
When adding curly braces around the case statement body, then the indentation is correct, and correctly produces the following:
lemma Try(i: int) { match i { case i' => { var x :| x == i'; assert x == i'; } } }
Mac
The text was updated successfully, but these errors were encountered:
Thanks for reporting, we will look at it.
Sorry, something went wrong.
Until the formatter get fixes, here is a workaround:
lemma Try(i: int) { match i { case i' => var x :| x == i'; /**/assert x == i'; } }
Reviews from #3790
120ead0
MikaelMayer
Successfully merging a pull request may close this issue.
Dafny version
4.0.0
Code to produce this issue
Command to run and resulting output
What happened?
When running dafny format, one gets the following result:
Instead it shouldn't change the indentation.
When adding curly braces around the case statement body, then the indentation is correct, and correctly produces the following:
What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: