Skip to content
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

Spurious unused module warning (warning 60) with recursive modules #7522

Closed
vicuna opened this issue Apr 25, 2017 · 1 comment
Closed

Spurious unused module warning (warning 60) with recursive modules #7522

vicuna opened this issue Apr 25, 2017 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Apr 25, 2017

Original bug ID: 7522
Reporter: @SkySkimmer
Status: acknowledged (set by @dra27 on 2017-04-27T19:43:56Z)
Resolution: open
Priority: normal
Severity: tweak
Version: 4.04.1
Category: misc
Child of: #7314
Monitored by: @yakobowski

Bug description

This is mentioned at the end of #7314 by @eponier whose reproduction is smaller than mine.

Steps to reproduce

module M : sig module A : sig type t end end =
struct
module rec A : sig type t end = struct type t = B.t end
and B : sig type t end = struct type t = A.t list end
end

With 4.04.1, "ocamlc -w A" returns "Warning 60 : unused module B".

@lpw25
Copy link
Contributor

lpw25 commented May 7, 2020

This was fixed by #9393.

@lpw25 lpw25 closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants