Make isTauTy detect higher-rank contexts
Previously, `isTauTy` would only detect higher-rank `forall`s, not higher-rank contexts, which led to some minor bugs observed in #18127. Easily fixed by adding a case for `(FunTy InvisArg _ _)`. Fixes #18127.
Showing
- compiler/GHC/Core/Type.hs 11 additions, 9 deletionscompiler/GHC/Core/Type.hs
- testsuite/tests/deriving/should_fail/T18127b.hs 8 additions, 0 deletionstestsuite/tests/deriving/should_fail/T18127b.hs
- testsuite/tests/deriving/should_fail/T18127b.stderr 22 additions, 0 deletionstestsuite/tests/deriving/should_fail/T18127b.stderr
- testsuite/tests/deriving/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/deriving/should_fail/all.T
- testsuite/tests/typecheck/should_fail/T18127a.hs 16 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T18127a.hs
- testsuite/tests/typecheck/should_fail/T18127a.stderr 32 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T18127a.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