Make candidateQTvs contain tyvar with zonked kinds
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Dec 2018 11:11:31 +0000 (11:11 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Dec 2018 11:14:13 +0000 (11:14 +0000)
commit71e26a74da5e5e9a61163b87ab4d22de88a2d04a
treef43c989640daa727011c099ba790bb2c795399cb
parent28f41f1a7a0ebae7b50ca41dbf78c04ee5b8b5b7
Make candidateQTvs contain tyvar with zonked kinds

candidateQTyVars was failing to return fully-zonked
tyvars, and that made things fall over chaotically
when we try to sort them into a well-scoped telescope.
Result: Trac #15795

So I made candidateQTvs guarantee to have fully-zonked
tyvars (i.e. with zonked kinds).  That's a bit annoying
but not really difficult.
compiler/typecheck/TcMType.hs
testsuite/tests/polykinds/T15795.hs [new file with mode: 0644]
testsuite/tests/polykinds/T15795a.hs [new file with mode: 0644]
testsuite/tests/polykinds/all.T