diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-03-11 21:20:09 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-03-11 21:20:09 -0400 |
commit | 7dcc04f288c27a29e18ad2c0b55d07b218655deb (patch) | |
tree | fa4207a3986c005d10f5f95eb8be8dad5f9363c2 /tests/selfRpc.ur | |
parent | fe082f71b4e7069908b96efbc7c1645e1d266350 (diff) |
Handle recursive RPC handlers
Diffstat (limited to 'tests/selfRpc.ur')
-rw-r--r-- | tests/selfRpc.ur | 7 |
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> |