fixed one bug

This commit is contained in:
sebastianselander 2023-03-27 14:44:21 +02:00
parent bd3cf3c3f1
commit aa4a615c28

View file

@ -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