fixed one bug
This commit is contained in:
parent
bd3cf3c3f1
commit
aa4a615c28
1 changed files with 1 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ inferPattern = \case
|
|||
++ " arguments but has been given "
|
||||
++ show (length patterns)
|
||||
)
|
||||
sub <- composeAll <$> zipWithM unify (map snd patterns) vs
|
||||
sub <- composeAll <$> zipWithM unify vs (map snd patterns)
|
||||
return (T.PInj (coerce constr) (apply sub (map fst patterns)), apply sub ret)
|
||||
PCatch -> (T.PCatch,) <$> fresh
|
||||
PEnum p -> do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue