diff options
Diffstat (limited to 'Test/dafny0/RefinementModificationChecking.dfy')
-rw-r--r-- | Test/dafny0/RefinementModificationChecking.dfy | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Test/dafny0/RefinementModificationChecking.dfy b/Test/dafny0/RefinementModificationChecking.dfy deleted file mode 100644 index dbf39106..00000000 --- a/Test/dafny0/RefinementModificationChecking.dfy +++ /dev/null @@ -1,23 +0,0 @@ -
-ghost module R1 {
- var f: int;
- method m(y: set<int>) returns (r: int)
- modifies this;
- {
- var t := y;
- }
-}
-
-ghost module R2 refines R1 {
- var g: nat;
- method m ...
- {
- ...;
- var x := 3;
- t := {1}; // error: previous local
- r := 3; // error: out parameter
- f := 4; // fine: all fields, will cause re-verification
- x := 6; // fine: new local
- g := 34;// fine: new field
- }
-}
|