summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2014-08-06 09:50:02 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2014-08-06 09:50:02 -0400
commitba4af1234ee438d5c5cb87ba624b03b69135ab93 (patch)
tree75fc2f6ed811ac4f8153c5e8b215835b912c4c1a /tests
parentee4ec02054d2ec9c07cb2d0e0350f0d0cfd253a9 (diff)
MonoReduce bug involving 'error'
Diffstat (limited to 'tests')
-rw-r--r--tests/pb.ur7
-rw-r--r--tests/pb.urs1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/pb.ur b/tests/pb.ur
new file mode 100644
index 00000000..e6e5bd5c
--- /dev/null
+++ b/tests/pb.ur
@@ -0,0 +1,7 @@
+fun api_1 (pb:postBody) (nm:string) : transaction page =
+ return <xml>Processing the request</xml>
+
+fun api (pb:postBody) (v:int) (nm:string) : transaction page =
+ case v of
+ 1 => api_1 pb nm
+ | _ => error <xml>Version {[v]} is not supported</xml>
diff --git a/tests/pb.urs b/tests/pb.urs
new file mode 100644
index 00000000..9def0871
--- /dev/null
+++ b/tests/pb.urs
@@ -0,0 +1 @@
+val api : postBody -> int -> string -> transaction page