Skip to content

Commit

Permalink
fix wong raise
Browse files Browse the repository at this point in the history
  • Loading branch information
riaqn authored and antalsz committed Dec 14, 2022
1 parent 985725b commit 82c7afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typing/ctype.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2501,9 +2501,9 @@ and mcomp_tuple_description type_pairs env =
mcomp type_pairs env ty1 ty2;
if gf1 = gf2
then iter xs ys
else raise (Unify (expand_to_unification_error env []))
else raise Incompatible
| [], [] -> ()
| _ -> raise (Unify (expand_to_unification_error env []))
| _ -> raise Incompatible
in
iter

Expand Down

0 comments on commit 82c7afe

Please sign in to comment.