Skip to content

Commit

Permalink
index: to upstream: correct predef paths
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Nov 17, 2023
1 parent 23a9e08 commit a8d04f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ocaml/typing/cmt_format.ml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ let iter_on_usages ~f () =
| { Types.cstr_tag = Cstr_extension (path, _); _ } ->
let namespace : Shape.Sig_component_kind.t = Extension_constructor in
f ~namespace env path lid
| { Types.cstr_uid = Predef name; _} ->
let id = List.assoc name Predef.builtin_idents in
f ~namespace:Constructor env (Pident id) lid
| { Types.cstr_res; cstr_name; _ } ->
let path = path_in_type cstr_res cstr_name in
Option.iter ~f:(fun path -> f ~namespace:Constructor env path lid) path
Expand Down

0 comments on commit a8d04f1

Please sign in to comment.