summaryrefslogtreecommitdiff
path: root/Source/Dafny/Dafny.atg
diff options
context:
space:
mode:
authorGravatar Jason Koenig <unknown>2012-06-13 18:32:05 -0700
committerGravatar Jason Koenig <unknown>2012-06-13 18:32:05 -0700
commit84219c03a73e14a7b0a74c4e94b38b8855f13fa7 (patch)
treece1a501e5395d09ddaa99e627e68ce9cf9c1dfe7 /Source/Dafny/Dafny.atg
parent13e5d0e4f57219fe325924548c3919bd6acc5a68 (diff)
Dafny: allow parallel assignments to assign to the same LHS if the RHS match.
Diffstat (limited to 'Source/Dafny/Dafny.atg')
-rw-r--r--Source/Dafny/Dafny.atg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Dafny.atg b/Source/Dafny/Dafny.atg
index 195495aa..0011c665 100644
--- a/Source/Dafny/Dafny.atg
+++ b/Source/Dafny/Dafny.atg
@@ -799,7 +799,7 @@ Rhs<out AssignmentRhs r, Expression receiverForInitCall>
| "*" (. r = new HavocRhs(t); .)
| Expression<out e> (. r = new ExprRhs(e); .)
)
- { Attribute<ref attrs> } (. r.Attributes = attrs; .)
+ { Attribute<ref attrs> } (. if (r != null) r.Attributes = attrs; .)
.
VarDeclStatement<.out Statement/*!*/ s.>
= (. IToken x = null, assignTok = null; bool isGhost = false;