Fix #14618 by applying a subst in deeplyInstantiate
Previously, we were inexplicably not applying an instantiating substitution to arguments in non-prenex types. It's amazing this has been around for so long! I guess there aren't a lot of non-prenex types around. test case: typecheck/should_fail/T14618 (cherry picked from commit 722a6584)
Showing
- compiler/typecheck/Inst.hs 4 additions, 3 deletionscompiler/typecheck/Inst.hs
- testsuite/tests/typecheck/should_fail/T14618.hs 11 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T14618.hs
- testsuite/tests/typecheck/should_fail/T14618.stderr 23 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T14618.stderr
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
Loading
Please register or sign in to comment