summaryrefslogtreecommitdiff
path: root/Test/test20
diff options
context:
space:
mode:
authorGravatar MichalMoskal <unknown>2009-12-17 01:17:59 +0000
committerGravatar MichalMoskal <unknown>2009-12-17 01:17:59 +0000
commit9447617aefbe9706b0d74a827181976e4b9e9d26 (patch)
tree471ea6938e90be46af5e6ce8e7ca88de1081c977 /Test/test20
parentfa8cb4c335668f180fa2c181ca6bb1ad87b54c4a (diff)
Allow ":" in addition to "returns" in function definitions. Make the pretty-printer use ":" not "returns".
Allow foo(x,y,z:int,p,q:ptr) kind of syntax in function definitions. Consequently foo(int,y:bool) is no longer allowed. Update the testsuite to match that.
Diffstat (limited to 'Test/test20')
-rw-r--r--Test/test20/Answer6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/test20/Answer b/Test/test20/Answer
index a4b991f7..efa5bced 100644
--- a/Test/test20/Answer
+++ b/Test/test20/Answer
@@ -87,7 +87,7 @@ type C _ _;
type C2 b a = C a b;
-function f(C int bool) returns (int);
+function f(C int bool) : int;
const x: C2 bool int;
@@ -108,7 +108,7 @@ type ref;
type Set a = [a]bool;
-function union<a>(x: Set a, y: Set a) returns (Set a);
+function union<a>(x: Set a, y: Set a) : Set a;
axiom (forall<a> x: Set a, y: Set a, z: a :: (x[z] || y[z]) == union(x, y)[z]);
@@ -133,7 +133,7 @@ implementation P()
type Set a = [a]bool;
-function union<a>(x: Set a, y: Set a) returns (Set a);
+function union<a>(x: Set a, y: Set a) : Set a;
axiom (forall<a> x: Set a, y: Set a, z: a :: x[z] || y[z] <==> union(x, y)[z]);