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 4, 2021
1 parent 9d866b5 commit aa6840a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typing/types.ml
Original file line number Diff line number Diff line change
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 aa6840a

Please sign in to comment.