From 48a13664ba3fe87143d6ec040a95c88e0891c57a 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 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pb.ur (limited to 'tests/pb.ur') 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 -- cgit v1.2.3