diff options
author | Rustan Leino <unknown> | 2013-02-13 18:11:11 -0800 |
---|---|---|
committer | Rustan Leino <unknown> | 2013-02-13 18:11:11 -0800 |
commit | b0e4b4eaee0e98e04b4b7254f2f09540f2d7b904 (patch) | |
tree | 85be5860d4e513ecbcc76661411b077bb3fb5021 /Test/dafny0/Definedness.dfy | |
parent | 2c74f9200db870814ea3dae63484cbe969ec3526 (diff) |
Frame expressions are now checked to be well formed.
(A nice consequence of this is that the method IsTotal is no longer needed.)
Diffstat (limited to 'Test/dafny0/Definedness.dfy')
-rw-r--r-- | Test/dafny0/Definedness.dfy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/dafny0/Definedness.dfy b/Test/dafny0/Definedness.dfy index f99d1503..58337a26 100644 --- a/Test/dafny0/Definedness.dfy +++ b/Test/dafny0/Definedness.dfy @@ -39,7 +39,7 @@ class SoWellformed { }
method O(a: SoWellformed, b: int) returns (c: bool, d: SoWellformed)
- modifies a.next; // this may not be well-defined, but that's okay for modifies clauses
+ modifies a.next; // error: this is not well-defined if a == null (but it's okay to have a.next==null)
{
c := true;
}
|