mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-19 06:17:33 +03:00
Update parser-typechecker/src/Unison/PatternMatchCoverage/Solve.hs
This commit is contained in:
parent
364b7790ca
commit
627acb7f3a
@ -519,8 +519,8 @@ addConstraint con0 nc = do
|
||||
let updateLiteral pos neg lit
|
||||
| Just lit1 <- pos,
|
||||
lit1 == lit =
|
||||
(pure (), Ignore) -- we already have this positive constraint
|
||||
-- the constraint contradicts negative info
|
||||
-- we already have this positive constraint
|
||||
(pure (), Ignore)
|
||||
| Set.member lit neg = (contradiction, Ignore)
|
||||
| otherwise = (pure (), Update (Just lit, neg))
|
||||
in modifyLiteralC var pmlit updateLiteral nc
|
||||
|
Loading…
Reference in New Issue
Block a user