Skip to content

Commit

Permalink
Added annotations needed by 5.3.0~beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Nov 4, 2024
1 parent b811bd6 commit 16539f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/trait0.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module Create0 (X : sig
struct
type (_, _) ext += T : ('a X.t, X.module_type) ext

let same_witness (type m2) t2 : (X.module_type, m2) Type_eq_opt.t =
match (t2 : (_ X.t, m2) ext) with
let same_witness (type a m2) t2 : (X.module_type, m2) Type_eq_opt.t =
match (t2 : (a X.t, m2) ext) with
| T -> Type_eq_opt.Equal
| _ -> Not_equal
;;
Expand All @@ -38,8 +38,8 @@ module Create1 (X : sig
struct
type (_, _) ext += T : (('a, 'b) X.t, 'a X.module_type) ext

let same_witness (type a m2) t2 : (a X.module_type, m2) Type_eq_opt.t =
match (t2 : ((a, _) X.t, m2) ext) with
let same_witness (type a b m2) t2 : (a X.module_type, m2) Type_eq_opt.t =
match (t2 : ((a, b) X.t, m2) ext) with
| T -> Type_eq_opt.Equal
| _ -> Not_equal
;;
Expand All @@ -54,8 +54,8 @@ module Create2 (X : sig
struct
type (_, _) ext += T : (('a, 'b, 'c) X.t, ('a, 'b) X.module_type) ext

let same_witness (type a b m2) t2 : ((a, b) X.module_type, m2) Type_eq_opt.t =
match (t2 : ((a, b, _) X.t, m2) ext) with
let same_witness (type a b c m2) t2 : ((a, b) X.module_type, m2) Type_eq_opt.t =
match (t2 : ((a, b, c) X.t, m2) ext) with
| T -> Type_eq_opt.Equal
| _ -> Not_equal
;;
Expand Down

0 comments on commit 16539f4

Please sign in to comment.