From 654a4218e5122728bcd17bf3cc85e575cdd4fbdc Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 8 Mar 2009 13:28:21 -0400 Subject: RPC returning a default datatype --- tests/rpcDD.ur | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tests/rpcDD.ur (limited to 'tests/rpcDD.ur') diff --git a/tests/rpcDD.ur b/tests/rpcDD.ur new file mode 100644 index 00000000..13293b83 --- /dev/null +++ b/tests/rpcDD.ur @@ -0,0 +1,26 @@ +datatype list t = Nil | OtherNil | Cons of t * list t + +table t : {A : int} + +fun main () : transaction page = + let + fun rows () = + query (SELECT * FROM t) + (fn r ls => return (Cons (r.T.A, ls))) + Nil + + fun show ls = + case ls of + Nil => + | OtherNil => That's impossible! + | Cons (x, ls') => {[x]}
{show ls'}
+ in + s <- source Nil; + return +