diff options
-rw-r--r-- | src/elaborate.sml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/elaborate.sml b/src/elaborate.sml index f221f59e..b096813a 100644 --- a/src/elaborate.sml +++ b/src/elaborate.sml @@ -2184,6 +2184,9 @@ and elabEdecl denv (dAll as (d, loc), (env, gs)) = 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 |