view tests/mutual.ur @ 1869:16b08de04f05

Detect more SQL uses without 'database' directive
author Adam Chlipala <adam@chlipala.net>
date Mon, 30 Sep 2013 16:37:37 -0400
parents 61a1f5c5ae2c
children
line wrap: on
line source
datatype foo = A | B of bar
and bar = C | D of foo

val q = B (D A)

fun main () = return <xml>
  {case q of
       B (D A) => <xml>Good</xml>
     | _ => <xml>Bad</xml>}
</xml>