diff options
author | 2012-01-25 16:54:27 +0100 | |
---|---|---|
committer | 2012-01-25 16:54:27 +0100 | |
commit | 9e786072739644a116b8720ba5c28cf4daec22ed (patch) | |
tree | 448d01b6c4309fe2d238da7d0111724a5832c666 /Source/Dafny | |
parent | 26bdec533c18c1f9afdae9cf67bb18db8ce94199 (diff) |
Dafny: Fixed a bug in the resolving of UpdateStmts.
Diffstat (limited to 'Source/Dafny')
-rw-r--r-- | Source/Dafny/Resolver.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs index 379a690a..116ca201 100644 --- a/Source/Dafny/Resolver.cs +++ b/Source/Dafny/Resolver.cs @@ -1758,6 +1758,8 @@ namespace Microsoft.Dafny { if (tr.CanAffectPreviouslyKnownExpressions) {
Error(tr.Tok, "can only have initialization methods which modify at most 'this'.");
}
+ var a = new AssignStmt(s.Tok, s.Lhss[0].Resolved, tr);
+ s.ResolvedStatements.Add(a);
}
}
|