diff options
author | rustanleino <unknown> | 2011-02-03 19:59:42 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2011-02-03 19:59:42 +0000 |
commit | 13d5431ef7bcbf03138178756d91911d6e805cdb (patch) | |
tree | 51523a2078808dbc4fc27c28c8c80540754064bf /Test/dafny0/Definedness.dfy | |
parent | b8b0627fcb22c5637829e564ea2f42f44d4b8097 (diff) |
Dafny: allow self-calls in function postconditions--these simply refer to the result value of the current call
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 1cb74b1d..d4a39179 100644 --- a/Test/dafny0/Definedness.dfy +++ b/Test/dafny0/Definedness.dfy @@ -235,7 +235,7 @@ function Postie1(c: Mountain): Mountain function Postie2(c: Mountain): Mountain
requires c != null && c.x == 5;
- ensures Postie2(c).x == 5; // well-formedness error (null dereference)
+ ensures Postie2(c).x == 5; // error: well-formedness error (null dereference)
{
c
}
|