Add missing solveEqualities
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 25 Apr 2016 15:17:34 +0000 (16:17 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 28 Apr 2016 16:28:20 +0000 (17:28 +0100)
commit4c746cb2886b06ca53a2edb62188827c3dbccce0
treec35871cfcdff5d0daec902e45354840cea57b1a0
parent9ed57d66e95e0f27085497dcf51ea9d7db2bde79
Add missing solveEqualities

I'd missed a call to solveEqualities in the partial-type-sig case
of TcBinds.tcUserTypeSig.

Also the checkValidType test done there best done after inference,
in checkInferredPolyId (and is already done there).

Fixes Trac #11976
compiler/typecheck/TcBinds.hs
testsuite/tests/partial-sigs/should_fail/T11976.hs [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/T11976.stderr [new file with mode: 0644]
testsuite/tests/partial-sigs/should_fail/all.T