view tests/onerror.ur @ 1622:a20daedfd1d0

Avoid setting a Date's time with a non-integer value
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Dec 2011 10:13:36 -0500
parents b4480a56cab7
children
line wrap: on
line source
fun main n =
  case n of
      0 => error <xml>Zero is bad!</xml>
    | _ => return <xml/>