summaryrefslogtreecommitdiff
path: root/tests/appjs.ur
blob: 403b0b4e29f079a3f8a742b5e356220b96424dad (plain)
1
2
3
4
5
fun id n = if n = 0 then 0 else 1 + id (n - 1)

fun main () : transaction page = return <xml><body>
  <button onclick={fn _ => alert (show (id 3))}/>
</body></xml>