Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomadge committed Aug 6, 2024
1 parent 3397cdc commit 12edb9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Source/DafnyCore/AST/Grammar/Printer/Printer.Statement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ public void PrintStatement(Statement stmt, int indent) {
Contract.Assert(false); throw new cce.UnreachableException(); // unexpected statement
}

void PrintBy(ConcreteUpdateStatement s)
{
void PrintBy(ConcreteUpdateStatement s) {
BlockStmt proof = s switch {
UpdateStmt updateStmt => updateStmt.Proof,
AssignOrReturnStmt returnStmt => returnStmt.Proof,
Expand Down
5 changes: 2 additions & 3 deletions Source/DafnyCore/Dafny.atg
Original file line number Diff line number Diff line change
Expand Up @@ -2352,9 +2352,8 @@ UpdateStmt<out Statement/*!*/ s>
}
(
"by" BlockStmt<out proof, out _, out _>
| ";"
)
";" (. endTok = t; .)
| ";" (. endTok = t; .)
)
)
(. var rangeToken = new RangeToken(startToken, t);
if (suchThat != null) {
Expand Down

0 comments on commit 12edb9e

Please sign in to comment.