Remove duplicate quantified constraints
This is an easy fix for Trac #15244: just avoid adding the same quantified Given constraint to the inert set twice. See TcSMonad Note [Do not add duplicate quantified instances].
Showing
- compiler/typecheck/TcInteract.hs 33 additions, 3 deletionscompiler/typecheck/TcInteract.hs
- compiler/typecheck/TcSMonad.hs 28 additions, 28 deletionscompiler/typecheck/TcSMonad.hs
- testsuite/tests/quantified-constraints/T15244.hs 69 additions, 0 deletionstestsuite/tests/quantified-constraints/T15244.hs
- testsuite/tests/quantified-constraints/all.T 1 addition, 0 deletionstestsuite/tests/quantified-constraints/all.T
Loading
Please register or sign in to comment