diff src/elaborate.sml @ 1359:e525ad571e15

Recursive record unification errors, for more detail
author Adam Chlipala <adam@chlipala.net>
date Thu, 23 Dec 2010 11:23:31 -0500
parents 74d35d9a5d16
children dd99e1702432
line wrap: on
line diff
--- a/src/elaborate.sml	Tue Dec 21 18:01:23 2010 -0500
+++ b/src/elaborate.sml	Thu Dec 23 11:23:31 2010 -0500
@@ -907,7 +907,7 @@
                              if consEq env loc (c1, c2) then
                                  findPointwise fs1
                              else
-                                 SOME (nm1, c1, c2)
+                                 SOME (nm1, c1, c2, (unifyCons env loc c1 c2; NONE) handle CUnify (_, _, err) => SOME err)
              in
                  raise CUnify' (CRecordFailure (unsummarize s1, unsummarize s2, findPointwise (#fields s1)))
              end