Wrap an implication around class-sig kind errors
Ticket #17841 showed that we can get a kind error in a class signature, but lack an enclosing implication that binds its skolems. This patch * Adds the wrapping implication: the new call to checkTvConstraints in tcClassDecl1 * Simplifies the API to checkTvConstraints, which was not otherwise called at all. * Simplifies TcErrors.report_unsolved by *not* initialising the TidyEnv from the typechecker lexical envt. It's enough to do so from the free vars of the unsolved constraints; and we get silly renamings if we add variables twice: once from the lexical scope and once from the implication constraint.
Showing
- compiler/typecheck/TcErrors.hs 1 addition, 2 deletionscompiler/typecheck/TcErrors.hs
- compiler/typecheck/TcEvidence.hs 1 addition, 2 deletionscompiler/typecheck/TcEvidence.hs
- compiler/typecheck/TcTyClsDecls.hs 5 additions, 1 deletioncompiler/typecheck/TcTyClsDecls.hs
- compiler/typecheck/TcUnify.hs 8 additions, 12 deletionscompiler/typecheck/TcUnify.hs
- testsuite/tests/polykinds/T16902.stderr 1 addition, 1 deletiontestsuite/tests/polykinds/T16902.stderr
- testsuite/tests/polykinds/T17841.hs 7 additions, 0 deletionstestsuite/tests/polykinds/T17841.hs
- testsuite/tests/polykinds/T17841.stderr 13 additions, 0 deletionstestsuite/tests/polykinds/T17841.stderr
- testsuite/tests/polykinds/all.T 1 addition, 0 deletionstestsuite/tests/polykinds/all.T
Loading
-
mentioned in issue #17841 (closed)
-
mentioned in issue #17963 (closed)
-
mentioned in commit 41f2c0cf
-
mentioned in merge request !2967 (closed)
-
mentioned in commit a1c91185
-
mentioned in commit d5a3c1f3
-
mentioned in commit 84a45221
-
mentioned in commit b4fae1a5
-
mentioned in commit 33f09551
-
mentioned in commit 83167bcd
-
mentioned in merge request !3200 (closed)
-
mentioned in issue #16758 (closed)
-
mentioned in commit 648e5207
-
mentioned in issue #16244 (closed)
-
mentioned in issue #16245 (closed)
-
mentioned in commit 01dd8c76
-
mentioned in commit df995a3d
-
mentioned in commit 2420c555
Please register or sign in to comment