Check for bogus quantified tyvars in partial type sigs
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 20 Dec 2017 15:41:02 +0000 (15:41 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 21 Dec 2017 14:14:21 +0000 (14:14 +0000)
commit72938f5890dac81afad52bf58175c1e29ffbc6dd
tree97d7973a919901d4b4125524973eb0c328625534
parent584cbd4a19887497776ce1f61c15df652b8b2ea4
Check for bogus quantified tyvars in partial type sigs

This fixes Trac #14479.  Not difficult.

See Note [Quantification and partial signatures] Wrinkle 4,
in TcSimplify.
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcSimplify.hs
testsuite/tests/partial-sigs/should_fail/T14479.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/T14479.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/all.T