From ba4af1234ee438d5c5cb87ba624b03b69135ab93 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Wed, 6 Aug 2014 09:50:02 -0400 Subject: MonoReduce bug involving 'error' --- tests/pb.ur | 7 +++++++ tests/pb.urs | 1 + 2 files changed, 8 insertions(+) create mode 100644 tests/pb.ur create mode 100644 tests/pb.urs (limited to 'tests') 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 Processing the request + +fun api (pb:postBody) (v:int) (nm:string) : transaction page = + case v of + 1 => api_1 pb nm + | _ => error Version {[v]} is not supported 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 -- cgit v1.2.3