diff options
author | Rustan Leino <unknown> | 2014-02-24 15:16:57 -0800 |
---|---|---|
committer | Rustan Leino <unknown> | 2014-02-24 15:16:57 -0800 |
commit | ec90ed7e102dfc76bc3677f0241494bad4c16c6f (patch) | |
tree | 173a0f5bc1bdea27bfffaf0f3b2483b01f615bda /Test/dafny4/SoftwareFoundations-Basics.dfy | |
parent | 92b39104cfc64750e79db1344836a71334c67939 (diff) |
Minor clean-up in a couple of test files.
Diffstat (limited to 'Test/dafny4/SoftwareFoundations-Basics.dfy')
-rw-r--r-- | Test/dafny4/SoftwareFoundations-Basics.dfy | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Test/dafny4/SoftwareFoundations-Basics.dfy b/Test/dafny4/SoftwareFoundations-Basics.dfy index 25adce4c..0b695aef 100644 --- a/Test/dafny4/SoftwareFoundations-Basics.dfy +++ b/Test/dafny4/SoftwareFoundations-Basics.dfy @@ -53,8 +53,8 @@ method test_next_weekday() // "function method" in the declaration of next_weekday.) To try this
// out on rise4fun.com/dafny: (0) comment out (or fix!) the assert above
// so that the program will verify, (1) fill in a body of the uninterpreted
- // function f on line 412 below (any body will do; for example, uncomment
- // line 416), and (2) change the name of this method to Main().
+ // function f on line 396 below (any body will do; for example, uncomment
+ // line 400), and (2) change the name of this method to Main().
print next_weekday(wednesday);
}
@@ -134,10 +134,7 @@ datatype Nat = O
| S(Nat)
-// Note, in order to refer to the function pred as Playground1.pred outside the current
-// module, the function must be declared "static". This will change in a near-future
-// release of Dafny.
-static function pred (n : Nat) : Nat
+function pred (n : Nat) : Nat
{
match n
case O => O
|