annotate tests/mutual.ur @ 1272:56bd4a4f6e66

Some serious bug-fix work to get HTML example to compile; this includes fixing a bug with 'val' patterns in Unnest and the need for more local reduction in Especialize
author Adam Chlipala <adamc@hcoop.net>
date Thu, 03 Jun 2010 13:04:37 -0400
parents 61a1f5c5ae2c
children
rev   line source
adamc@805 1 datatype foo = A | B of bar
adamc@805 2 and bar = C | D of foo
adamc@807 3
adamc@807 4 val q = B (D A)
adamc@807 5
adamc@807 6 fun main () = return <xml>
adamc@807 7 {case q of
adamc@807 8 B (D A) => <xml>Good</xml>
adamc@807 9 | _ => <xml>Bad</xml>}
adamc@807 10 </xml>