summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-03-11 21:20:09 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-03-11 21:20:09 -0400
commita0d30f13c42c256a8777e43195650d4b85c3c97a (patch)
treefa4207a3986c005d10f5f95eb8be8dad5f9363c2 /tests
parent0432c5d78592ea09550832b9997d0138d6622bc6 (diff)
Handle recursive RPC handlers
Diffstat (limited to 'tests')
-rw-r--r--tests/selfRpc.ur7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/selfRpc.ur b/tests/selfRpc.ur
new file mode 100644
index 00000000..a851008d
--- /dev/null
+++ b/tests/selfRpc.ur
@@ -0,0 +1,7 @@
+fun test () =
+ k <- source <xml/>;
+ return <xml><button onclick={r <- rpc (test ()); set k r}/></xml>
+
+fun main () : transaction page =
+ h <- test ();
+ return <xml><body>{h}</body></xml>