When checking associated type instances, check that the *type* indices match those of the class instance. We don't need to track tke kind indices, and indeed thay don't have the same careful name scoping. See the notes in checkValidClass.
When checking associated type instances, check that
the *type* indices match those of the class instance.
We don't need to track tke kind indices, and indeed
thay don't have the same careful name scoping.
See the notes in checkValidClass.

Fixes Trac #7073

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