Check quantification for partial type signatues
Trac #14449 showed that we were failing to check that the quantified type variables of a partial type signature remained distinct. See Note [Quantified variables in partial type signatures] in TcBinds. A little refactoring along the way.
Showing
- compiler/typecheck/TcBinds.hs 82 additions, 44 deletionscompiler/typecheck/TcBinds.hs
- compiler/typecheck/TcHsType.hs 10 additions, 5 deletionscompiler/typecheck/TcHsType.hs
- testsuite/tests/partial-sigs/should_fail/T14449.hs 6 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14449.hs
- testsuite/tests/partial-sigs/should_fail/T14449.stderr 4 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14449.stderr
- testsuite/tests/partial-sigs/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/partial-sigs/should_fail/all.T
Loading
Please register or sign in to comment