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

"with module" may introduce module alias in signature, this breaks Coq #6365

Closed
vicuna opened this issue Apr 9, 2014 · 2 comments
Closed
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna commented Apr 9, 2014

Original bug ID: 6365
Reporter: @garrigue
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2015-12-11T18:26:35Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.0+dev
Target version: 4.02.0+dev
Fixed in version: 4.02.0+dev
Category: typing
Related to: #5514

Bug description

When N is a module alias, the construction "S with module M = N" introduces this alias in the resulting signature.
As a result compilation of the trunk version of coq is broken.

@vicuna
Copy link
Author

vicuna commented Apr 9, 2014

Comment author: @garrigue

Fixed in typemod.ml, by applying Mtype.remove_alias to the inserted signature.

Note that this is related to 5514: the official semantics is not to insert the signature of the right-hand side of the equation, but just add equations to the contained types.

@vicuna
Copy link
Author

vicuna commented Apr 16, 2014

Comment author: @whitequark

@garrigue: the patch broke camlp4 build, see PR6371

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

2 participants