anyRewritableTyVar now looks in RuntimeReps
Previously, anyRewritableTyVar looked only at the arg and res of `arg -> res`, but their RuntimeReps are also subject to rewriting. Easy to fix. Test case: typecheck/should_compile/T17024 Fixes #17024.
Showing
- compiler/typecheck/TcType.hs 4 additions, 1 deletioncompiler/typecheck/TcType.hs
- testsuite/tests/typecheck/should_compile/T17024.hs 19 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T17024.hs
- testsuite/tests/typecheck/should_compile/T17024.stderr 8 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T17024.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