summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-01-01 11:13:08 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-01-01 11:13:08 -0500
commite0d59f2e5dc62dbc99a7f85197b4b3c63fcaf101 (patch)
treed140aed7feabff611443a56399504f5420ad6a82 /tests
parent6c16d6f8418dbf32b4c17067d7f9617bbdc2ad8f (diff)
Reactive bool
Diffstat (limited to 'tests')
-rw-r--r--tests/stypes.ur3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stypes.ur b/tests/stypes.ur
index 08de343f..e5006465 100644
--- a/tests/stypes.ur
+++ b/tests/stypes.ur
@@ -4,6 +4,7 @@ fun main () : transaction page =
sBoth <- source (7, 42.1);
sOpt <- source None;
+ sBool <- source True;
return <xml><body>
<dyn signal={n <- signal sInt; return <xml>{[n + 3]}</xml>}/> <a onclick={set sInt 1}>Change</a><br/>
@@ -20,4 +21,6 @@ fun main () : transaction page =
None => return <xml>None</xml>
| Some n => return <xml>{[n]}</xml>}/>
<a onclick={set sOpt (Some 7)}>Change</a><br/>
+
+ <dyn signal={b <- signal sBool; return <xml>{[b]}</xml>}/> <a onclick={set sBool False}>Change</a><br/>
</body></xml>