Wibble to fix of Trac #5439: deal with the error-recovery case
Wibble to fix of Trac #5439: deal with the error-recovery case

Even if we are recovering from a typecheck error, we should still do
the right thing for the "closed" flag.  Otherwise we get an assert
failure, and potentially different behaviour when the user fixes
the original type error.

mcschroeder/ghc,hferreiro/replay,ezyang/ghc,TomMD/ghc,siddhanathan/ghc,acowley/ghc,da-x/ghc,mettekou/ghc,spacekitteh/smcghc,christiaanb/ghc,mettekou/ghc,ml9951/ghc,snoyberg/ghc,elieux/ghc,holzensp/ghc,jstolarek/ghc,ghc-android/ghc,nomeata/ghc,hferreiro/replay,nkaretnikov/ghc,wxwxwwxxx/ghc,ghc-android/ghc,lukexi/ghc-7.8-arm64,nkaretnikov/ghc,vikraman/ghc,nathyong/microghc-ghc,holzensp/ghc,urbanslug/ghc,elieux/ghc,ezyang/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,shlevy/ghc,ghc-android/ghc,sgillespie/ghc,gridaphobe/ghc,tibbe/ghc,lukexi/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,ekmett/ghc,tjakway/ghcjvm,anton-dessiatov/ghc,ghc-android/ghc,GaloisInc/halvm-ghc,shlevy/ghc,gridaphobe/ghc,anton-dessiatov/ghc,nkaretnikov/ghc,green-haskell/ghc,gcampax/ghc,fmthoma/ghc,acowley/ghc,ml9951/ghc,oldmanmike/ghc,mfine/ghc,urbanslug/ghc,mcschroeder/ghc,green-haskell/ghc,lukexi/ghc,holzensp/ghc,mcmaniac/ghc,siddhanathan/ghc,nushio3/ghc,jstolarek/ghc,ghc-android/ghc,nomeata/ghc,mettekou/ghc,ekmett/ghc,ryantm/ghc,TomMD/ghc,sgillespie/ghc,wxwxwwxxx/ghc,sdiehl/ghc,green-haskell/ghc,ezyang/ghc,ryantm/ghc,snoyberg/ghc,olsner/ghc,AlexanderPankiv/ghc,bitemyapp/ghc,gridaphobe/ghc,mcschroeder/ghc,nomeata/ghc,vTurbine/ghc,mcschroeder/ghc,fmthoma/ghc,lukexi/ghc-7.8-arm64,shlevy/ghc,bitemyapp/ghc,GaloisInc/halvm-ghc,olsner/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc,da-x/ghc,gridaphobe/ghc,jstolarek/ghc,snoyberg/ghc,mcmaniac/ghc,urbanslug/ghc,gcampax/ghc,vikraman/ghc,nushio3/ghc,acowley/ghc,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,nathyong/microghc-ghc,frantisekfarka/ghc-dsi,oldmanmike/ghc,mcschroeder/ghc,mfine/ghc,ml9951/ghc,bitemyapp/ghc,fmthoma/ghc,shlevy/ghc,nkaretnikov/ghc,ghc-android/ghc,GaloisInc/halvm-ghc,da-x/ghc,elieux/ghc,shlevy/ghc,TomMD/ghc,nushio3/ghc,ryantm/ghc,christiaanb/ghc,mettekou/ghc,vTurbine/ghc,nathyong/microghc-ghc,holzensp/ghc,nkaretnikov/ghc,ezyang/ghc,acowley/ghc,green-haskell/ghc,tibbe/ghc,oldmanmike/ghc,ml9951/ghc,TomMD/ghc,bitemyapp/ghc,gcampax/ghc,lukexi/ghc-7.8-arm64,mettekou/ghc,hferreiro/replay,mcschroeder/ghc,GaloisInc/halvm-ghc,mfine/ghc,nushio3/ghc,mfine/ghc,AlexanderPankiv/ghc,green-haskell/ghc,christiaanb/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,elieux/ghc,snoyberg/ghc,mfine/ghc,gridaphobe/ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,oldmanmike/ghc,snoyberg/ghc,da-x/ghc,nathyong/microghc-ghc,nushio3/ghc,acowley/ghc,mcmaniac/ghc,forked-upstream-packages-for-ghcjs/ghc,gcampax/ghc,mfine/ghc,urbanslug/ghc,frantisekfarka/ghc-dsi,ilyasergey/GHC-XAppFix,vikraman/ghc,gcampax/ghc,siddhanathan/ghc,holzensp/ghc,siddhanathan/ghc,TomMD/ghc,jstolarek/ghc,vTurbine/ghc,spacekitteh/smcghc,ryantm/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,vTurbine/ghc,AlexanderPankiv/ghc,nathyong/microghc-ghc,tibbe/ghc,olsner/ghc,lukexi/ghc-7.8-arm64,fmthoma/ghc,snoyberg/ghc,ilyasergey/GHC-XAppFix,ryantm/ghc,lukexi/ghc,ml9951/ghc,lukexi/ghc-7.8-arm64,nkaretnikov/ghc,spacekitteh/smcghc,sdiehl/ghc,vikraman/ghc,gridaphobe/ghc,ml9951/ghc,sgillespie/ghc,wxwxwwxxx/ghc,bitemyapp/ghc,elieux/ghc,hferreiro/replay,mettekou/ghc,spacekitteh/smcghc,mcschroeder/ghc,sgillespie/ghc,nomeata/ghc,sdiehl/ghc,shlevy/ghc,olsner/ghc,hferreiro/replay,ekmett/ghc,nathyong/microghc-ghc,christiaanb/ghc,snoyberg/ghc,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,spacekitteh/smcghc,tibbe/ghc,siddhanathan/ghc,olsner/ghc,hferreiro/replay,ezyang/ghc,gcampax/ghc,ml9951/ghc,tjakway/ghcjvm,sgillespie/ghc,vikraman/ghc,ezyang/ghc,anton-dessiatov/ghc,frantisekfarka/ghc-dsi,fmthoma/ghc,ilyasergey/GHC-XAppFix,sgillespie/ghc,ml9951/ghc,tjakway/ghcjvm,mettekou/ghc,siddhanathan/ghc,nushio3/ghc,anton-dessiatov/ghc,ekmett/ghc,da-x/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,TomMD/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,urbanslug/ghc,frantisekfarka/ghc-dsi,AlexanderPankiv/ghc,olsner/ghc,sdiehl/ghc,da-x/ghc,shlevy/ghc,mcmaniac/ghc,nomeata/ghc,sdiehl/ghc,frantisekfarka/ghc-dsi,elieux/ghc,ekmett/ghc,lukexi/ghc,christiaanb/ghc,AlexanderPankiv/ghc,hferreiro/replay,forked-upstream-packages-for-ghcjs/ghc,TomMD/ghc,ghc-android/ghc,acowley/ghc,urbanslug/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,AlexanderPankiv/ghc,sdiehl/ghc,oldmanmike/ghc,tibbe/ghc,vTurbine/ghc,AlexanderPankiv/ghc,oldmanmike/ghc,urbanslug/ghc,christiaanb/ghc,wxwxwwxxx/ghc,tjakway/ghcjvm,tjakway/ghcjvm,siddhanathan/ghc,sdiehl/ghc,lukexi/ghc,mcmaniac/ghc,vikraman/ghc,nushio3/ghc,fmthoma/ghc,christiaanb/ghc,gridaphobe/ghc,acowley/ghc,elieux/ghc,ilyasergey/GHC-XAppFix,vTurbine/ghc,vikraman/ghc,gcampax/ghc,anton-dessiatov/ghc,olsner/ghc,ezyang/ghc,jstolarek/ghc,anton-dessiatov/ghc