summaryrefslogtreecommitdiff
path: root/tests/tooEager.ur
diff options
context:
space:
mode:
authorGravatar Simon Van Casteren <simonvancasteren@localhost.localdomain>2019-12-13 11:46:22 +0100
committerGravatar Simon Van Casteren <simonvancasteren@localhost.localdomain>2019-12-13 11:46:22 +0100
commit34bb8fae33a75868060838cda98bb46e0257ca0c (patch)
treec6c5c4dfbcc49444f14be479cf2d7e6501203878 /tests/tooEager.ur
parent870ce334b835614bab3f114b2aa57617f699c6be (diff)
parent2bca6e48c0ea8043c5300f4ebdefa5167e6472bf (diff)
Merge remote-tracking branch 'origin/master' into typeOf
Diffstat (limited to 'tests/tooEager.ur')
-rw-r--r--tests/tooEager.ur18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tooEager.ur b/tests/tooEager.ur
new file mode 100644
index 00000000..c84a6d6c
--- /dev/null
+++ b/tests/tooEager.ur
@@ -0,0 +1,18 @@
+fun test (i: list int) : transaction unit =
+ a <- return (Some "abc");
+ c <- (case a of
+ None => return "1"
+ | Some b =>
+ debug "not happening :(";
+ return "2"
+ );
+ (case i of
+ [] => return ()
+ | first :: _ => debug c)
+
+fun main (): transaction page =
+ return <xml>
+ <body>
+ <button onclick={fn _ => rpc (test [])}>click</button>
+ </body>
+ </xml>