diff options
author | Unknown <leino@LEINO4.redmond.corp.microsoft.com> | 2011-04-05 17:03:28 -0700 |
---|---|---|
committer | Unknown <leino@LEINO4.redmond.corp.microsoft.com> | 2011-04-05 17:03:28 -0700 |
commit | 2918a80203d42a51c45872dd6900eb3677d130eb (patch) | |
tree | 253e0ad470fd6581305f88edf61f00b7a074e5f0 /Test/vacid0/LazyInitArray.dfy | |
parent | 6e93acd001f5d23c08b02c162dc2111e531f3d5d (diff) |
Dafny: Allow field selections and array-element selection as LHSs of assignments where RHS is not just an expression
Diffstat (limited to 'Test/vacid0/LazyInitArray.dfy')
-rw-r--r-- | Test/vacid0/LazyInitArray.dfy | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/vacid0/LazyInitArray.dfy b/Test/vacid0/LazyInitArray.dfy index fc4d687d..e56a8317 100644 --- a/Test/vacid0/LazyInitArray.dfy +++ b/Test/vacid0/LazyInitArray.dfy @@ -41,9 +41,9 @@ class LazyInitArray<T> { ensures |Contents| == N && Zero == zero;
ensures (forall x :: x in Contents ==> x == zero);
{
- var aa := new T[N+1]; a := aa;
- var ii := new int[N]; b := ii;
- ii := new int[N]; c := ii;
+ a := new T[N+1];
+ b := new int[N];
+ c := new int[N];
n := 0;
// initialize ghost variable Contents to a sequence of length N containing only zero's,
|