Skip to content

Commit

Permalink
first check t1 == t2 in Types.eq_type
Browse files Browse the repository at this point in the history
  • Loading branch information
garrigue committed Jun 24, 2021
1 parent 9f156d1 commit 10080b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typing/types.ml
Expand Up @@ -557,7 +557,7 @@ end

(* Comparison for [type_expr]; cannot be used for functors *)

let eq_type t1 t2 = repr t1 == repr t2
let eq_type t1 t2 = t1 == t2 || repr t1 == repr t2
let compare_type t1 t2 = compare (get_id t1) (get_id t2)

(**** Some type creators ****)
Expand Down

0 comments on commit 10080b3

Please sign in to comment.