Use eqType, not tcEqType, in metavar kind check
Close #20356. See addendum to Note [coreView vs tcView] in GHC.Core.Type for the details. Also killed old Note about metaTyVarUpdateOK, which has been gone for some time. test case: typecheck/should_fail/T20356
Showing
- compiler/GHC/Core/Type.hs 25 additions, 0 deletionscompiler/GHC/Core/Type.hs
- compiler/GHC/Tc/Gen/HsType.hs 5 additions, 4 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/Solver/Interact.hs 1 addition, 1 deletioncompiler/GHC/Tc/Solver/Interact.hs
- compiler/GHC/Tc/Utils/TcMType.hs 4 additions, 4 deletionscompiler/GHC/Tc/Utils/TcMType.hs
- compiler/GHC/Tc/Utils/Unify.hs 0 additions, 32 deletionscompiler/GHC/Tc/Utils/Unify.hs
- testsuite/tests/typecheck/should_fail/T20356.hs 18 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T20356.hs
- testsuite/tests/typecheck/should_fail/T20356.stderr 7 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T20356.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