Look both ways when looking for quantified equalities
When looking up (t1 ~# t2) in the quantified constraints, check both orientations. Forgetting this led to #23333.
Showing
- compiler/GHC/Tc/Solver/Dict.hs 11 additions, 36 deletionscompiler/GHC/Tc/Solver/Dict.hs
- compiler/GHC/Tc/Solver/Equality.hs 55 additions, 12 deletionscompiler/GHC/Tc/Solver/Equality.hs
- compiler/GHC/Tc/Solver/Interact.hs 1 addition, 1 deletioncompiler/GHC/Tc/Solver/Interact.hs
- compiler/GHC/Tc/Solver/Monad.hs 2 additions, 2 deletionscompiler/GHC/Tc/Solver/Monad.hs
- testsuite/tests/quantified-constraints/T23333.hs 8 additions, 0 deletionstestsuite/tests/quantified-constraints/T23333.hs
- testsuite/tests/quantified-constraints/all.T 1 addition, 1 deletiontestsuite/tests/quantified-constraints/all.T
Loading
Please register or sign in to comment