view tests/aborter2.ur @ 2151:4cd36865e0b5

assert function to use with location literal _LOC_
author Gabriel Riba Faura <griba2001@gmail.com>
date Wed, 03 Jun 2015 15:07:46 +0200
parents 7009b0ac1501
children
line wrap: on
line source
table t : { X : int }

fun main () : transaction page =
    v <- query (SELECT * FROM t)
         (fn r (_ : int) => return (error <xml>Shot down!</xml>))
         0;
    return <xml>Result: {[v]}</xml>