diff src/elaborate.sml @ 1554:396e8d881205

Better detection of type class witnesses in local bindings
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Sep 2011 08:57:13 -0400
parents 7efcf8f4a44a
children c7d0328ba777
line wrap: on
line diff
--- a/src/elaborate.sml	Sun Aug 28 19:32:20 2011 -0400
+++ b/src/elaborate.sml	Sat Sep 03 08:57:13 2011 -0400
@@ -2184,6 +2184,9 @@
 
                     val () = checkCon env e' et pt
 
+                    val env' = E.patBinds env p'
+                    (* Redo to get proper detection of type class witnesses *)
+
                     val pt = normClassConstraint env pt
                 in
                     case exhaustive (env, et, [p'], loc) of