diff src/elaborate.sml @ 1299:3c334458c84f

Fix typing of cut operators; fix lexing of XML comments
author Adam Chlipala <adam@chlipala.net>
date Thu, 16 Sep 2010 15:34:50 -0400
parents b4480a56cab7
children d008c4c43a0a
line wrap: on
line diff
--- a/src/elaborate.sml	Thu Sep 09 12:42:25 2010 -0400
+++ b/src/elaborate.sml	Thu Sep 16 15:34:50 2010 -0400
@@ -1998,6 +1998,7 @@
                             
                 val gs3 = D.prove env denv (first, rest, loc)
             in
+                checkKind env c' ck kname;
                 ((L'.ECut (e', c', {field = ft, rest = rest}), loc), (L'.TRecord rest, loc),
                  gs1 @ enD gs2 @ enD gs3)
             end
@@ -2013,6 +2014,7 @@
                             
                 val gs3 = D.prove env denv (c', rest, loc)
             in
+                checkKind env c' ck (L'.KRecord ktype, loc);
                 ((L'.ECutMulti (e', c', {rest = rest}), loc), (L'.TRecord rest, loc),
                  gs1 @ enD gs2 @ enD gs3)
             end