Skip to content

Commit

Permalink
Add missing kind cast to pure unifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Eisenberg committed Feb 17, 2016
1 parent 90f3561 commit aff5bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/types/Unify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ uVar tv1 ty kco
-- this is because the range of the subst is the target
-- type, not the template type. So, just check for
-- normal type equality.
guard (ty' `eqType` ty) }
guard ((ty' `mkCastTy` kco) `eqType` ty) }
Nothing -> uUnrefined tv1 ty ty kco } -- No, continue

uUnrefined :: TyVar -- variable to be unified
Expand Down

0 comments on commit aff5bb4

Please sign in to comment.