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

Inclusion d'une structure dans une signature #6252

Closed
vicuna opened this issue Oct 16, 2002 · 1 comment
Closed

Inclusion d'une structure dans une signature #6252

vicuna opened this issue Oct 16, 2002 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Oct 16, 2002

Original bug ID: 1441
Reporter: administrator
Status: closed (set by @garrigue on 2010-12-13T12:10:58Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.12.0
Category: ~DO NOT USE (was: OCaml general)
Related to: #4974 #5037
Monitored by: "Julien Signoles"

Bug description

Full_Name: Julien Signoles
Version: 3.06
OS: Linux
Submission from: ext2.lri.fr (129.175.15.5)

module type MT = sig val a : bool val a : int end;;

module type MT = sig val a : bool val a : int end

module M : MT = struct let a = true let a = 0 end;;

Signature mismatch:
Modules do not match: sig val a : bool val a : int end is not included in MT
Values do not match: val a : int is not included in val a : bool

solutions (?) :
- restreindre la signature MT a sig val : int end
- modifier l'algo verifiant l'inclusion
(- modifier le "include" pour n'exporter que sig val : int end.
En pratique, j'obtiens ce cas a cause de l'utilisation d'"include" dans MT et
dans M.)

Julien Signoles.

@vicuna
Copy link
Author

vicuna commented Dec 13, 2010

Comment author: @garrigue

C'est la solution 1 (restreindre la signature) qui a été adoptée depuis 3.12.

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