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

Bug modules recursifs #8283

Closed
vicuna opened this issue Sep 14, 2003 · 1 comment
Closed

Bug modules recursifs #8283

vicuna opened this issue Sep 14, 2003 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Sep 14, 2003

Original bug ID: 1833
Reporter: administrator
Status: closed (set by @xavierleroy on 2009-07-09T15:26:34Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)

Bug description

Je continue mon mailing de masse :-)

Le programme suivant provoque l'erreur: "Unbound type constructor s"

====
module type S = sig type t end

module rec M :
sig
type s = C of int
include S with type t = s
end =
struct
type s = C of int
type t = s
end

Sans le "rec", ça passe.

-- Alain

Additional information

Appears fixed in 3.11.0...

@vicuna
Copy link
Author

vicuna commented Sep 15, 2003

Comment author: administrator

This is consistent with the typing algorithm used to elaborate rec sigs:
"include" statements that involve components of the rec sig are not allowed. I
doubt this will ever change, but leave this as a feature wish just in case.
-XL, 2003-09-15

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

1 participant