Guest User

Untitled

a guest
Feb 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. diff --git a/typing/ctype.ml b/typing/ctype.ml
  2. index 2e8c060..52d337e 100644
  3. --- a/typing/ctype.ml
  4. +++ b/typing/ctype.ml
  5. @@ -2068,7 +2068,7 @@ let rec mcomp type_pairs env t1 t2 =
  6. | (Tconstr (p, _, _), _) | (_, Tconstr (p, _, _)) ->
  7. begin try
  8. let decl = Env.find_type p env in
  9. - if non_aliasable p decl then raise (Unify [])
  10. + if non_aliasable p decl || is_datatype decl then raise (Unify []);
  11. with Not_found -> ()
  12. end
  13. (*
Add Comment
Please, Sign In to add comment