|
@@ -315,7 +315,10 @@ let check_param_constraints ctx types t pl c p =
|
|
f pl
|
|
f pl
|
|
| _ -> ti
|
|
| _ -> ti
|
|
) in
|
|
) in
|
|
- unify ctx t ti p
|
|
|
|
|
|
+ try
|
|
|
|
+ unify_raise ctx t ti p
|
|
|
|
+ with Error(Unify l,p) ->
|
|
|
|
+ if not ctx.untyped then display_error ctx (error_msg (Unify (Constraint_failure (s_type_path c.cl_path) :: l))) p;
|
|
) ctl
|
|
) ctl
|
|
|
|
|
|
(* build an instance from a full type *)
|
|
(* build an instance from a full type *)
|