Improve typechecking of RULEs, to account for type wildcard holes
This fixes Trac #10072. Previously the type-hole constraint was escaping to top level, but it belongs in the scope of the skolems bound by the RULE. (cherry picked from commit 5ab7518f)
Showing
- compiler/typecheck/TcMType.hs 1 addition, 1 deletioncompiler/typecheck/TcMType.hs
- compiler/typecheck/TcRules.hs 9 additions, 2 deletionscompiler/typecheck/TcRules.hs
- testsuite/tests/typecheck/should_compile/T10072.hs 4 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T10072.hs
- testsuite/tests/typecheck/should_compile/T10072.stderr 8 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T10072.stderr
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment