Add fake entries into the global kind environment for pattern synonyms.
This is needed to give meaningful error messages (instead of internal panics) when a program tries to lift a pattern synonym into a kind. (fixes T9161) (cherry picked from commit aa3166f4)
Showing
- compiler/typecheck/TcBinds.lhs 16 additions, 7 deletionscompiler/typecheck/TcBinds.lhs
- compiler/typecheck/TcHsType.lhs 0 additions, 1 deletioncompiler/typecheck/TcHsType.lhs
- testsuite/tests/patsyn/should_fail/T9161-1.hs 7 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T9161-1.hs
- testsuite/tests/patsyn/should_fail/T9161-1.stderr 4 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T9161-1.stderr
- testsuite/tests/patsyn/should_fail/T9161-2.hs 9 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T9161-2.hs
- testsuite/tests/patsyn/should_fail/T9161-2.stderr 5 additions, 0 deletionstestsuite/tests/patsyn/should_fail/T9161-2.stderr
- testsuite/tests/patsyn/should_fail/all.T 2 additions, 0 deletionstestsuite/tests/patsyn/should_fail/all.T
Loading
Please register or sign in to comment