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

Exception raised by type checker #5694

Closed
vicuna opened this issue Jul 20, 2012 · 1 comment
Closed

Exception raised by type checker #5694

vicuna opened this issue Jul 20, 2012 · 1 comment
Assignees

Comments

@vicuna
Copy link

@vicuna vicuna commented Jul 20, 2012

Original bug ID: 5694
Reporter: @mmottl
Assigned to: @garrigue
Status: closed (set by @garrigue on 2012-07-21T01:16:11Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 4.00.0+beta2/+rc1
Fixed in version: 4.00.0+dev
Category: typing
Monitored by: @hcarty @mmottl

Bug description

The type checker raises an exception: Invalid_argument("List.iter2")

Steps to reproduce

Put this in file foo.ml:

include (struct end : sig type 'a t end with type 'a t := unit)

Run "ocaml foo.ml", which will raise the mentioned exception.

@vicuna
Copy link
Author

@vicuna vicuna commented Jul 21, 2012

Comment author: @garrigue

Forgot to check that the numbers of parameters were identical.
Fix in trunk and 4.00, revision 12753/4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants