When checking associated type instances, check that
authorSimon Peyton Jones <simonpj@microsoft.com>
Sat, 14 Jul 2012 12:12:13 +0000 (13:12 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Sat, 14 Jul 2012 12:12:13 +0000 (13:12 +0100)
commit3b9be226397535492a08cd4f25d5f672d245385b
treefd4c48ea33317fc2d550584eeb6e22a32f254896
parent75a3c1bc42e3617e47f85d279f69b463f4e69f49
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
compiler/typecheck/TcTyClsDecls.lhs