diff src/tag.sml @ 125:fd98dd10dce7

Corifying (non-mutual) 'val rec'
author Adam Chlipala <adamc@hcoop.net>
date Thu, 17 Jul 2008 10:23:04 -0400
parents 7fdc146b2bc2
children 76a4d69719d8
line wrap: on
line diff
--- a/src/tag.sml	Thu Jul 17 10:13:18 2008 -0400
+++ b/src/tag.sml	Thu Jul 17 10:23:04 2008 -0400
@@ -132,6 +132,7 @@
                               case d of
                                   DCon (_, n, _, _) => Int.max (n, count)
                                 | DVal (_, n, _, _, _) => Int.max (n, count)
+                                | DValRec vis => foldl (fn ((_, n, _, _, _), count) => Int.max (n, count)) count vis
                                 | DExport _ => count) 0 file
 
         fun doDecl (d as (d', loc), (env, count, tags, byTag)) =