diff options
author | leino <unknown> | 2014-08-27 15:28:48 -0700 |
---|---|---|
committer | leino <unknown> | 2014-08-27 15:28:48 -0700 |
commit | 565b411b3dafa597232f99c018a11163dcda5175 (patch) | |
tree | d1f5cb65b3462ad3706220981e91b926f5da68cf /Test/dafny0/RefinementErrors.dfy | |
parent | 012d65fe24eba7545bd7bc5f1c9cf8b69fc369e7 (diff) |
Disallow parentheses-less declarations of predicates and co-predicates, along with a backward-compatibility warning message if such declarations are attempted
Diffstat (limited to 'Test/dafny0/RefinementErrors.dfy')
-rw-r--r-- | Test/dafny0/RefinementErrors.dfy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/dafny0/RefinementErrors.dfy b/Test/dafny0/RefinementErrors.dfy index b6be031a..121b33aa 100644 --- a/Test/dafny0/RefinementErrors.dfy +++ b/Test/dafny0/RefinementErrors.dfy @@ -31,7 +31,7 @@ module B refines A { modifies this; // error: cannot add a modifies clause ensures 0 <= x; // fine - predicate abc // error: cannot replace a field with a predicate + predicate abc() // error: cannot replace a field with a predicate var xyz: bool; // error: ...or even with another field function F // error: cannot replace a "function method" with a "function" |