Fix a name-space problem with promotion
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 14:31:33 +0000 (14:31 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 16:33:21 +0000 (16:33 +0000)
commitc1b4b76931a58c59e5b269477e38db659cf7aea8
treeeecdff6435d801430b3c5d4ecbd9536729375831
parente31946600b0c4ecfb88eaa64fa2aeebf9194a809
Fix a name-space problem with promotion

Trac #12686 showed that we were allowing a term variable into
a type, by promotion.  I chose to squash this in the renamer.
compiler/rename/RnEnv.hs
testsuite/tests/rename/should_fail/T12686.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T12686.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/all.T