Skip to content

Fix .cmt for included signatures #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ocaml/typing/typemod.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1481,8 +1481,8 @@ and transl_signature env sg =
else
Tincl_structure, extract_sig env smty.pmty_loc mty
in
let tsg, newenv = Env.enter_signature ~scope sg env in
List.iter (Signature_names.check_sig_item names item.psig_loc) tsg;
let sg, newenv = Env.enter_signature ~scope sg env in
List.iter (Signature_names.check_sig_item names item.psig_loc) sg;
let incl =
{ incl_mod = tmty;
incl_type = sg;
Expand All @@ -1491,7 +1491,7 @@ and transl_signature env sg =
incl_loc = sloc;
}
in
mksig (Tsig_include incl) env loc, tsg, newenv
mksig (Tsig_include incl) env loc, sg, newenv
| Psig_class cl ->
let (classes, newenv) = Typeclass.class_descriptions env cl in
List.iter (fun cls ->
Expand Down