Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions examples/using_dune/lib/values/values_in_submodules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ module Exported = struct

end

module _ = struct
let unused_int = 42
end

let () = ignore Unexported.used_int

let () = ignore Exported.Private.used_int
Expand Down
2 changes: 1 addition & 1 deletion src/deadCode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ let structure_item super self i =
end;
let r = super.Tast_mapper.structure_item self i in
begin match i.str_desc with
| Tstr_module _ -> mods := List.tl !mods
| Tstr_module {mb_name = {txt = Some _; _}; _} -> mods := List.tl !mods
| _ -> ()
end;
r
Expand Down
Loading