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. (cherry picked from commit 72938f58)
Showing
- compiler/typecheck/TcBinds.hs 33 additions, 21 deletionscompiler/typecheck/TcBinds.hs
- compiler/typecheck/TcSimplify.hs 43 additions, 26 deletionscompiler/typecheck/TcSimplify.hs
- testsuite/tests/partial-sigs/should_fail/T14479.hs 9 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14479.hs
- testsuite/tests/partial-sigs/should_fail/T14479.stderr 10 additions, 0 deletionstestsuite/tests/partial-sigs/should_fail/T14479.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