File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1548,8 +1548,6 @@ let transl_type_decl env rec_flag sdecl_list =
1548
1548
raise (Error (loc, Type_clash (new_env, err))))
1549
1549
checks)
1550
1550
delayed_jkind_checks;
1551
- (* Check that constraints are enforced *)
1552
- List. iter2 (check_constraints new_env) sdecl_list decls;
1553
1551
(* Check that all type variables are closed; this also defaults any remaining
1554
1552
sort variables. Defaulting must happen before update_decls_jkind,
1555
1553
Typedecl_seperability.update_decls, and add_types_to_env, all of which need
@@ -1563,6 +1561,8 @@ let transl_type_decl env rec_flag sdecl_list =
1563
1561
Some ty -> raise(Error (sdecl.ptype_loc, Unbound_type_var (ty,decl)))
1564
1562
| None -> () )
1565
1563
sdecl_list tdecls;
1564
+ (* Check that constraints are enforced *)
1565
+ List. iter2 (check_constraints new_env) sdecl_list decls;
1566
1566
(* Add type properties to declarations *)
1567
1567
let decls =
1568
1568
try
You can’t perform that action at this time.
0 commit comments