Quantify unfixed kind variables in CUSKs
This is a small change in user-facing behavior. When we have a unification variable left over in a CUSK, we previously would issue an error. But, we can just quantify. This also teaches kcLHsQTyVars to use quantifyTyVars instead of its own, ad-hoc quantification scheme. Fixes #15273. test case: polykinds/T11648b
Showing
- compiler/typecheck/TcHsType.hs 17 additions, 52 deletionscompiler/typecheck/TcHsType.hs
- docs/users_guide/glasgow_exts.rst 2 additions, 8 deletionsdocs/users_guide/glasgow_exts.rst
- testsuite/tests/indexed-types/should_compile/T13777.hs 2 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T13777.hs
- testsuite/tests/indexed-types/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/indexed-types/should_compile/all.T
- testsuite/tests/indexed-types/should_fail/T13777.stderr 0 additions, 20 deletionstestsuite/tests/indexed-types/should_fail/T13777.stderr
- testsuite/tests/indexed-types/should_fail/all.T 0 additions, 1 deletiontestsuite/tests/indexed-types/should_fail/all.T
- testsuite/tests/polykinds/T11648b.stderr 0 additions, 9 deletionstestsuite/tests/polykinds/T11648b.stderr
- testsuite/tests/polykinds/T6039.stderr 0 additions, 10 deletionstestsuite/tests/polykinds/T6039.stderr
- testsuite/tests/polykinds/all.T 2 additions, 2 deletionstestsuite/tests/polykinds/all.T
- testsuite/tests/typecheck/should_fail/T14904a.stderr 0 additions, 9 deletionstestsuite/tests/typecheck/should_fail/T14904a.stderr
Loading
Please register or sign in to comment