Skip to content
Snippets Groups Projects
Commit 99706266 authored by Richard Eisenberg's avatar Richard Eisenberg Committed by Austin Seipp
Browse files

Fix egregious typo in checkTauTvUpdate.

The old code used an unzonked type in an occurs-check, which
would sometimes lead to an infinite loop.

Please merge to ghc-7.10.

(cherry picked from commit d5cd94d7)
parent dfb6b9f8
No related branches found
No related tags found
No related merge requests found
......@@ -987,7 +987,7 @@ checkTauTvUpdate dflags tv ty
; case sub_k of
Nothing -> return Nothing
Just LT -> return Nothing
_ | is_return_tv -> if tv `elemVarSet` tyVarsOfType ty
_ | is_return_tv -> if tv `elemVarSet` tyVarsOfType ty1
then return Nothing
else return (Just ty1)
_ | defer_me ty1 -- Quick test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment